<template>
<view :style="theme" class="page">

<!-- 首次进入引导添加到“我的小程序” -->
<!--view class="addMyMiniapp" v-if="isFirst" @tap.stop="shutAddMyMiniapp">
	<view>点击加入我的小程序 ↑</view>
	<text>了解"{{webSiteName}}"最新文章</text>
</view-->
	<!--PC顶部-->
	<!--顶部通知-->
	<DdragButton 
	    :isDock="true" 
		@btnClick="btnClick"
	/>
	
	<!--view class="d-fudong">
		<view class="d-kuan-80 d-gao-250 d-fudong-1">
			
		</view>
	</view-->
	<DdragButtons
	    v-if="shezhitubiao"
	    :isDock="true" 
		@btnClick="btnClicks"
		@kaiguanClick="shezhitubiaoclick"
		@gnkaiguan="gnkaiguan"
		:fenggeyanse="fenggeyanse"
	/>
		<u-sticky v-if="toptishishow" z-index="1000" offset-top="-40" bgColor="#ffffff">
			<u-transition :show="toptishishow" mode="fade-down">
				<Dtoptishi 
					:dianzanname="dianzanname"
					:dianzantouxiang="dianzantouxiang"
					:tongzhileixing="tongzhileixing"
				>
				</Dtoptishi>
			</u-transition>
		</u-sticky>
		<!-- 头部组件 -->
		<block v-if="bianlianshuid == 2">
			<!-- #ifdef APP || H5 -->
			
			<!-- #endif -->
			<u-navbar-tm-sou
				:autoBack="false"
				:scrollTop="scrollTop"
				:bgColor="fenggeyanse=='light' ? '#ffffff' : '#0b0b0b'"
			>
			    <!-- #ifdef APP -->
			    	<u-gap height="30" ></u-gap>
			    <!-- #endif -->
				<view slot="left" >
					
					<toubu :src="www['logoico']" :www="www.member" @choseBtn="kuaijieurl"></toubu>
				</view>
			</u-navbar-tm-sou>
			
		</block>
		<block v-else-if="bianlianshuid == 1">
			<!-- #ifdef MP -->
			
			<!-- #endif -->
		</block>
		<block v-else-if="bianlianshuid == 3">
			<u-sticky :offset-top="gaodu" :bgColor="fenggeyanse=='light' ? '#ffffff' : '#0b0b0b'">
				<!-- #ifdef APP -->
				<u-gap height="30" :bgColor="fenggeyanse=='light' ? '#ffffff' : '#0b0b0b'"></u-gap>
				<!-- #endif -->
				<!-- #ifdef MP -->
				<u-gap height="44" :bgColor="fenggeyanse=='light' ? '#ffffff' : '#0b0b0b'"></u-gap>
				<!-- #endif -->
				<toubu :src="www['logoico']" :www="www.member" @choseBtn="kuaijieurl"/>
				<u-tabs 
				:list="tiezileixing" 
				:current="tiezileixingxuanzhong" 
				@change="yemian" 
				:lineColor="fenggeyanse=='light' ? '#3a3a3a' : '#666666'" 
				:activeStyle="{
					color: fenggeyanse=='light' ? '#0b0b0b' : '#666666',
					fontWeight: 'bold',
					transform: 'scale(1.05)'
				}"
				>
					<view
						slot="right"
						style="padding-left: 4px; padding-right: 10px;"
						@tap="$u.toast('插槽被点击')"
					>
						<u-icon
							name="list"
							size="21"
							bold
						></u-icon>
					</view>
				</u-tabs>
			</u-sticky>
		</block>
		
		<!--左边-->
		<view class="d-kuan-pc">
			<!--左边PC-->
			<!-- #ifdef H5 -->
			<view class="d-xianshi-pc d-kuan-pc-25 d-zuo">
				
			</view>
			<!-- #endif -->
			<!--中间 H5-->
			<view class="d-kuan-pc-50-100" >
				<!--view v-if="tiezileixingxuanzhong == 0">
					关注
				</view-->
				<view >
					
					<view v-if="tiezileixingxuanzhong == 1">
						<block v-if="bianlianshuid == 1">
							<!--
							   backgroundRepeat: 'no-repeat',
							   backgroundPosition: 'center center',  
							   backgroundSize: 'cover',
							-->
							<view class="d-kuan d-gao-300 d-cengci-100" :style="[{backgroundImage:'url(' + www['beijingbu'] + ')',backgroundRepeat: 'no-repeat',backgroundPosition: 'center center',backgroundSize: 'cover' }]">
								<!-- #ifdef APP-PLUS -->
								<u-gap height="30" ></u-gap>
								<!-- #endif -->
								<!-- #ifdef APP || H5 -->
								<DtoubuSou :src="www['logo']" :www="www.member" saomiao="0" @choseBtn="kuaijieurl"></DtoubuSou>
								<!-- #endif -->
								<!-- #ifdef MP -->
								<u-navbar-tm-sou
									:bgColor="fenggeyanse=='light' ? '#ffffff' : '#0b0b0b'"
									:autoBack="false"
									:scrollTop="scrollTop"
									:safeAreaInsetTop="true"
								>
									<view slot="left" class="d-kuan">
										<u-search-sou v-if="jiansuokais == 1" saomiao="1" :scrollTop="scrollTop" :bgColor="fenggeyanse=='light' ? '#efefef' : '#424242'" :jiansuokai="jiansuokais" :clearabled="true" :showAction="false" inputAlign="center" height="35" v-model="searchValue" @search="searchTapjiansuo"  @choseBtn="kuaijieurl"></u-search-sou>
									    <u-search-sou v-else :clearabled="true" saomiao="1" :scrollTop="scrollTop" :bgColor="fenggeyanse=='light' ? '#efefef' : '#424242'" :showAction="false" inputAlign="center" height="35" v-model="searchValue" @search="searchTap" @choseBtn="kuaijieurl"></u-search-sou>
									</view>
								</u-navbar-tm-sou>
								<u-gap height="100"></u-gap>
								<!-- #endif -->
								<!-- #ifdef APP || H5 -->
								<u-gap height="50" ></u-gap>
								<!-- #endif -->
								<view class="d-kuan d-wenzi-juzhong ">
									<u--image :src="www['toubulogo']" width="200px" height="60px"></u--image>
									<!--image mode="scaleToFill" :src="www['toubulogo']" class="" style=""></image-->
								</view>
								<u-gap height="40" ></u-gap>
							</view>
							<!-- 图标 -->
							<view class="d-waikuang-0-10" style="margin-top: -80px;z-index: 1000;">
								<view class="d-kuan  d-yuanjiao-0-10" :style="'display:' + displaySwiper">
									<block v-for="(item, index) in tubiaoList" :key="index">
										<view v-if="item.catid == 3" class="d-baifen-25 d-zuo d-neirong-juzhong d-shangxia-10">
											<view v-if="item.id == 9" @click="dxintie" class="d-wenzi-hei">
												<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
												<view class="d-ziti-12 d-xia-6">{{item.title}}</view>
											</view>
											<view v-else-if="item.id == 10" @click="dxinping" class="d-wenzi-hei">
												<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
												<view class="d-ziti-12 d-xia-6">{{item.title}}</view>
											</view>
											<view v-else-if="item.id == 11" @click="dremen" class="d-wenzi-hei">
												<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
												<view class="d-ziti-12 d-xia-6">{{item.title}}</view>
											</view>
											<view v-else-if="item.id == 12" @click="getqiandao" class="d-wenzi-hei">
												<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
												<view v-if="yiqiandao == 1" class="d-ziti-12 d-xia-6 d-wenzi-yanse-hongse">已{{item.title}}</view>
												<view v-else class="d-ziti-12 d-xia-6">{{item.title}}</view>
											</view>
							
											<view class="d-clear"></view>
										</view>
									</block>
									<view class="d-clear"></view>
								</view>
							</view>
						</block>
						<block v-if="bianlianshuid == 2">
							<view class="d-kuan d-cengci" style="z-index: 0;">
							<swiper style="height:390px;margin-top: 0px;" class=""  interval="10000" autoplay="true" indicator-color="rgba(255, 255, 255, 0)" indicator-active-color="rgba(255, 255, 255, 0.0)">
								<block v-for="(item, index) in www['haibaoxingtu']" :key="index">
									<swiper-item class="swiper-item" :id="item.id" :index="index" :data-redicttype="item.type" :data-appid="item.appid" :data-url="item.url" >
										<view class="swiper-item-wrap" @click="tiezi(item.tieid,item.tieid)">
											<image  mode="aspectFill" :src="item.tu" class="d-gao-400" style=""></image>
										</view>
										<!--view class="swiper-mask"></view-->
										<!--view class="swiper-desc">
											<text>{{item.title}}</text>
										</view-->
									</swiper-item>
								</block>
							</swiper>
							</view>
							
							<!-- 图标 -->
							<view class="d-waikuang-0-10 d-cengci" style="margin-top: -80px;z-index: 1000;">
								<view class="d-kuan  d-yuanjiao-0-10" :style="'display:' + displaySwiper">
									<block v-for="(item, index) in tubiaoList" :key="index">
										<view v-if="item.catid == 3" class="d-baifen-25 d-zuo d-neirong-juzhong d-shangxia-10">
											<view v-if="item.id == 9" @click="dxintie" class="d-wenzi-hei">
												<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
												<view class="d-ziti-12 d-xia-6 ">{{item.title}}</view>
											</view>
											<view v-else-if="item.id == 10" @click="dxinping" class="d-wenzi-hei">
												<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
												<view class="d-ziti-12 d-xia-6">{{item.title}}</view>
											</view>
											<view v-else-if="item.id == 11" @click="dremen" class="d-wenzi-hei">
												<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
												<view class="d-ziti-12 d-xia-6">{{item.title}}</view>
											</view>
											<view v-else-if="item.id == 12" @click="getqiandao" class="d-wenzi-hei">
												<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
												<view v-if="yiqiandao == 1" class="d-ziti-12 d-xia-6 d-wenzi-yanse-hongse">已{{item.title}}</view>
												<view v-else class="d-ziti-12 d-xia-6">{{item.title}}</view>
											</view>
							
											<view class="d-clear"></view>
										</view>
									</block>
									<view class="d-clear"></view>
								</view>
							</view>
							
							
						</block>
						<!-- 轮播图 :style="{height: swiperheight + 'px'}" -->
						<view v-if="bianlianshuid == 3" style="z-index: 0;">
							<swiper style="height:180px" class="d-waikuang-10-0 d-yuanjiao-10-0"  interval="10000" autoplay="true" indicator-color="rgba(255, 255, 255, 0.1)" indicator-active-color="rgba(0, 0, 0, .6)">
								<block v-for="(item, index) in postsShowSwiperList" :key="index">
									<swiper-item class="swiper-item" :id="item.id" :index="index" :data-redicttype="item.type" :data-appid="item.appid" :data-url="item.url" >
										<view class="swiper-item-wrap" @click="tiezi(item.id,item.tdqt)">
											<image  mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10-0 swiper-item-img" style=""></image>
										</view>
										<!--view class="swiper-mask"></view-->
										<!--view class="swiper-desc">
											<text>{{item.title}}</text>
										</view-->
									</swiper-item>
								</block>
							</swiper>
						</view>
						<!-- 图标 -->
						<view v-if="bianlianshuid == 3" class="d-waikuang-0-10" style="z-index: 99999;">
							<view class="d-kuan d-beijing-bai d-yuanjiao-0-10" :style="'display:' + displaySwiper">
								<block v-for="(item, index) in tubiaoList" :key="index">
									<view v-if="item.catid == 3" class="d-baifen-25 d-zuo d-neirong-juzhong d-shangxia-10">
										<view v-if="item.id == 9" @click="dxintie"  class="d-wenzi-hei">
											<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">{{item.title}}</view>
										</view>
										<view v-else-if="item.id == 10" @click="dxinping"  class="d-wenzi-hei">
											<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">{{item.title}}</view>
										</view>
										<view v-else-if="item.id == 11" @click="dremen" class="d-wenzi-hei">
											<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">{{item.title}}</view>
										</view>
										<view v-else-if="item.id == 12" @click="getqiandao" class="d-wenzi-hei">
											<image mode="aspectFill" :src="item.thumb" class="d-yuanjiao-10 d-img-35" ></image>
											<view v-if="yiqiandao == 1" class="d-ziti-12 d-xia-6 d-wenzi-yanse-hongse">已{{item.title}}</view>
											<view v-else class="d-ziti-12 d-xia-6">{{item.title}}</view>
										</view>
						
										<view class="d-clear"></view>
									</view>
								</block>
								<view class="d-clear"></view>
							</view>
						</view>
						
						<!-- 签到 -->
						<view v-if="qiandaouidlist.length && qiandaokai == 1" class="d-waikuang-10">
							<view class="d-kuan d-beijing-bai d-yuanjiao-50 ">
								<view class="d-buhuanhang  d-yuanjiao-10 d-neikuang-10">
									<block v-for="(item, index) in qiandaouidlist" :key="index">
										<view class="d-touxiang-10" >
											<u-avatar :src="item.touxiang" fontSize="22" size="24" ></u-avatar>
										</view>
									</block>
								</view>
							</view>
						</view>
						<!--推荐圈子-->
						<view class="d-waikuang-10">
							<view class="d-beijing-bai d-yuanjiao-10 ">
								<view class="d-yuanjiao-10 d-neikuang-10 ">
									<block v-for="(item, indexs) in tuijianquanzilist" :key="indexs">
										<view class="d-kuan-baifen-50 d-zuo" @click="quanzi(item.id)">
											<view class="d-waikuang-5  d-purple d-yuanjiao-10 d-wenzi-hei">
												<view class="d-buhuanhang d-neikuang-5 ">
													<view class="d-kuan-40 d-img-anhei"> 
														<u-avatar :src="item.tubiao" fontSize="40" size="40" shape="circle"></u-avatar>
													</view>
													<view class="d-zuo-10 d-chaochu-1" style="line-height: 40px;">
														{{item.title}}
													</view>
												</view>
												<view class="d-ziti-12 d-beijing-lv-d0efef d-yuanjiao-0-10 d-neikuang-5" >
													<view class="d-buhuanhang  d-yuanjiao-10  d-zuo">
														<block v-for="(item, index) in item.touxiang" :key="index">
															<view class="d-touxiang-10" >
																<u-avatar :src="item.uid" fontSize="16" size="16" ></u-avatar>
															</view>
														</block>
													</view>
													<view class="d-kuan-40 d-beijing-bai d-neikuang-zuoyou-2-shangxia-4 d-wenzi-12 d-yuanjiao-50 d-neirong-juzhong d-you">
														浏览
													</view>
													<!--view class="d-kuan-baifen-50 d-zuo">
														用户：{{item.tieshu}}
													</view-->
													<view class="d-clear"></view>
												</view>
											</view>
											
										</view>
										
									</block>
									<view class="d-clear"></view>
									
								</view>
							</view>
						</view>
						<view v-if="kaifazhe == 1" class="d-waikuang-10 d-wenzi-hei">
							<view class="d-beijing-bai d-yuanjiao-10 ">
								<view class="d-yuanjiao-10 d-neikuang-10 ">
									<view class="d-kuan d-xia-20">
										<view class="d-wenzi-16 d-jiacu d-neirong-juzhong d-shang-10">「 对信支持跨平台 」</view>
										<view class="d-wenzi-12 d-wenzi-yanse-hui d-neirong-juzhong d-shang-10">对信前端基于 Uniapp 开发</view>
									</view>
									<view class="d-baifen-20 d-zuo d-neirong-juzhong d-shangxia-10 d-wenzi-yanse-hui">
										<view @click="tiezi(16,655)">
											<image mode="aspectFill" :src="domain+'/static/default/web/img/zc-08.png'" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">PC</view>
											<view class="d-ziti-12 d-xia-6">H5移动</view>
										</view>			
										
									</view>
									<view class="d-baifen-20 d-zuo d-neirong-juzhong d-shangxia-10 d-wenzi-yanse-hui">
										<view @click="tiezi(16,655)">
											<image mode="aspectFill" :src="domain+'/static/default/web/img/zc-09.png'" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">安卓</view>
											<view class="d-ziti-12 d-xia-6">APP</view>
										</view>			
										
									</view>
									<view class="d-baifen-20 d-zuo d-neirong-juzhong d-shangxia-10 d-wenzi-yanse-hui ">
										<view @click="tiezi(16,655)">
											<image mode="aspectFill" :src="domain+'/static/default/web/img/zc-05.png'" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">苹果</view>
											<view class="d-ziti-12 d-xia-6">ios</view>
										</view>			
										
									</view>
									<view class="d-baifen-20 d-zuo d-neirong-juzhong d-shangxia-10 d-wenzi-yanse-hui ">
										<view @click="tiezi(16,655)">
											<image mode="aspectFill" :src="domain+'/static/default/web/img/zc-11.png'" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">微信</view>
											<view class="d-ziti-12 d-xia-6">小程序</view>
										</view>			
										
									</view>
									<view class="d-baifen-20 d-zuo d-neirong-juzhong d-shangxia-10 d-wenzi-yanse-hui ">
										<view @click="tiezi(16,655)">
											<image mode="aspectFill" :src="domain+'/static/default/web/img/zc-04.png'" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">QQ</view>
											<view class="d-ziti-12 d-xia-6">小程序</view>
										</view>			
										
									</view>
									<view class="d-baifen-20 d-zuo d-neirong-juzhong d-shangxia-10 d-wenzi-yanse-hui ">
										<view @click="tiezi(16,655)">
											<image mode="aspectFill" :src="domain+'/static/default/web/img/zc-07.png'" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">百度</view>
											<view class="d-ziti-12 d-xia-6">小程序</view>
										</view>			
										
									</view>
									<view class="d-baifen-20 d-zuo d-neirong-juzhong d-shangxia-10 d-wenzi-yanse-hui ">
										<view @click="tiezi(16,655)">
											<image mode="aspectFill" :src="domain+'/static/default/web/img/zc-10.png'" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">阿里</view>
											<view class="d-ziti-12 d-xia-6">小程序</view>
										</view>			
										
									</view>
									<view class="d-baifen-20 d-zuo d-neirong-juzhong d-shangxia-10 d-wenzi-yanse-hui ">
										<view @click="tiezi(16,655)">
											<image mode="aspectFill" :src="domain+'/static/default/web/img/zc-01.png'" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">360</view>
											<view class="d-ziti-12 d-xia-6">小程序</view>
										</view>			
										
									</view>
									<view class="d-baifen-20 d-zuo d-neirong-juzhong d-shangxia-10 d-wenzi-yanse-hui ">
										<view @click="tiezi(16,655)">
											<image mode="aspectFill" :src="domain+'/static/default/web/img/zc-02.png'" class="d-yuanjiao-10 d-img-35" ></image>
											<view class="d-ziti-12 d-xia-6">字节</view>
											<view class="d-ziti-12 d-xia-6">小程序</view>
										</view>			
										
									</view>
									<view class="d-baifen-20 d-zuo d-neirong-juzhong d-shangxia-10 d-wenzi-yanse-hui ">
										<view @click="tiezi(16,655)">
											<image mode="aspectFill" :src="domain+'/static/default/web/img/zc-06.png'" class="d-yuanjiao-10 d-img-35" ></image>
											
											<view class="d-ziti-12 d-xia-6">快应用</view>
										</view>			
										
									</view>
									<view class="d-clear"></view>
								</view>
							</view>
						</view>
						<!--统计-->
						<view class="d-waikuang-10 d-wenzi-hei">
							<view class="d-beijing-bai d-yuanjiao-10 ">
								<view class="d-yuanjiao-10 d-neikuang-10 ">
									<u-row
											justify="space-between"
											gutter="10"
									>
										<u-col span="4">
											<view class="demo-layout bg-purple d-neirong-juzhong">
												<view>{{tongji.quanzi}}</view>
												<view class="d-wenzi-yanse-hui d-ziti-12">圈子</view>
												<image mode="aspectFill" src="/static/images/quan2.png" class="d-yuanjiao-10 d-img-26 d-shang-10" ></image>
											</view>
										</u-col>
										<u-col span="4">
											<view class="demo-layout bg-purple d-neirong-juzhong">
												<view>{{tongji.quantie}}</view>
												<view class="d-wenzi-yanse-hui d-ziti-12">圈贴</view>
												<image mode="aspectFill" src="/static/images/tiezi.png" class="d-yuanjiao-10 d-img-26 d-shang-10" ></image>
											</view>
										</u-col>
										<u-col span="4">
											<view class="demo-layout bg-purple d-neirong-juzhong">
												<view>{{tongji.huiyuan}}</view>
												<view class="d-wenzi-yanse-hui d-ziti-12">会员</view>
												<image mode="aspectFill" src="/static/images/wo2.png" class="d-yuanjiao-10 d-img-26 d-shang-10" ></image>
											</view>
										</u-col>
										
									</u-row>
									
								</view>
							</view>
						</view>
						<!--置顶-->
						<view class="d-waikuang-10">
							<view class="d-kuan d-beijing-bai d-yuanjiao-10 ">
								<view class="d-neikuang-zuoyou-6-shangxia-10">
								<block v-for="(item, index) in zhiding" :key="index">
									<view class="d-kuan d-buhuanhang">
										<view class="d-neikuang-zuoyou-2-shangxia-4" @click="tiezi(item.cid,item.id)">
											<view class="d-kuan-40 d-zuo">
												<u-tag :bgColor="fenggeyanse=='light' ? '#11d2b5' : '#303030'" :borderColor="fenggeyanse=='light' ? '#11d2b5' : '#303030'" text="推荐" size="mini" type="primary"></u-tag>
											</view>
											<view class="d-zuo d-zuo-10 d-wenzi-hei">
												<u--text :text="item.title" :lines="1" :color="fenggeyanse=='light' ? '#000000' : '#868686'"></u--text>
											</view>
										</view>
									</view>
									<view class="d-clear"></view>
								</block>
								</view>
							</view>
						</view>
						<!--话题TAG标签-->
						<view class="d-waikuang-10">
							<view class="d-kuan d-beijing-bai d-yuanjiao-10 ">
								<view class="d-neikuang-zuoyou-6-shangxia-10">
									<view >
										<view class="d-wenzi-hei">
											<u-cell icon="chat" title="热门话题"></u-cell>
										</view>
									</view>
									<Dtags
										:flowOptions="tags"
										:bgcolor="fenggeyanse =='light' ? '#eeeeee':'#313131'"
										:textcolor="fenggeyanse =='light' ? '#414141':'#868686'"
										@flowItemClickBack="tagsurl">
									</Dtags>
								</view>
							</view>
						</view>
					</view>
					<view v-if="tiezileixingxuanzhong == 0" >
						<view v-if="inguanzhuuid == 0">
							<u-empty
								mode="data"
								:icon="guanzhutu"
							>
							</u-empty>
							<view class="d-kuan d-neirong-juzhong"> 
								<view class="d-shang-20 d-wenzi-yanse-hongse">您还没有关注</view>
								<view class="d-shang-10 d-wenzi-yanse-hongse"> 为您推荐以下精彩内容</view>
							</view>
							
							
						</view>
					</view>
					
					
					<u-loading-icon text="加载中..." textSize="18" :show="jiazai" ></u-loading-icon>
					<!-- 列表template模板 -->
					
					<view class="d-yuanjiao-10">
						<view class="d-neikuang-zuoyou-6-shangxia-10">
							<u-row >
								<u-col span="4">
									<view  class="d-kuan d-buhuanhang">
									<u-icon class="d-shang-3" name="file-text" size="20"></u-icon> <view class="d-wenzi-hei"> 最新帖子</view>
									</view>
								</u-col>
								<u-col span="4">
									<view class="demo-layout bg-purple-light"></view>
								</u-col>
								<u-col span="4">
									<view v-if="fenggekaiguan == 0"  class="d-kuan">
									<view  class="d-kuan-40 d-you">
										<u-icon class="d-shang-3 d-you" name="list-dot" @click="fenggeshow = true" size="25"></u-icon>
										
									</view>
									</view>
								</u-col>
							</u-row>
						</view>
					</view>
					<u-picker
						:show="fenggeshow" 
						:columns="fenggevalue"
						:closeOnClickOverlay="true"
						title="选择风格"
						@cancel="fenggeshow = false"
						@confirm="fenggeshow = false"
						@change="fenggevalues"
					></u-picker>

					<!-- 列表template模板 -->
					
					<view v-if="fengge == 2" >
						<!--瀑布-->
						<Dwaterfall
						:dataList="postsList" 
						:column="columns" 
						@click="click" 
						@tiezi="tiezi"
						@getgeren="getgeren"
						@dianzan="dianzan"
						></Dwaterfall>
						<u-loading-icon text="加载中..." textSize="18" :show="xialajiazai" ></u-loading-icon>
						<view :style="'display:' + (isLoading?'block':'none')">
							<template is="tempLoading"></template>
						</view>
						<view class="loadingmore" :style="'display:' + floatDisplay">
							<view class="no-more" :hidden="!isLastPage">- 无更多文章 -</view>
						</view>
						<u-divider text="已经到底啦 !" v-if="daodi">{{daodi}}</u-divider>
						<!-- 版权信息template模板 -->
						<view class="copyright" :style="'display:' + floatDisplay">
							<block data-type="template" data-is="tempCopyright" data-attr="webSiteName:webSiteName,domain:domain">
								<view> {{webSiteName}} </view>
								<view> {{banbenhao}} </view>
							</block>
						</view>
					</view>
					<view v-else-if="fengge == 3" >
						<!--简约-->
						<block v-for="(item, index) in postsList" :key="index">
							<view class="d-kuan d-xia-10 d-beijing-bai">
								<view class="d-waikuang-10">
									<view class="d-kuan d-yuanjiao-10 d-shangxia-neikuang-10">
										<view class="u-page ">
											<view class="u-demo-block ">
												<view class="u-demo-block__content">
													<view class="album">
														<view class="album__avatar d-yuanjiao-50">
															
															<view class="d-gaokuang-40 d-kuanggao-40 d-yuanjiao-40 d-box" @click="getgeren(item.uid)">
																<image v-if="item.touxiang" :src="item.touxiang" mode="aspectFill" class="d-img-40 d-yuanjiao-50 d-img-anhei"></image>
																<image v-else src="/static/assets/images/avatar.png" mode="aspectFill" class="d-img-40 d-yuanjiao-50 d-img-anhei"></image>
																<image v-if="item.rzs == 1" :src="v" mode="aspectFill" class="d-img-10 d-yuanjiao-50  d-box-xia"></image>
															</view>
														</view>
														<view class="album__content">
															
															<u--text
															  :text="item.mingcheng"
															  type=""
															  bold
															  size="16"
															></u--text>
															<view class="d-wenzi-14 d-wenzi-yanse-hui">{{item.yonghuzu}}. {{item.guishudi}}</view>
															<!--标题-->
															
															<view v-if="item.caiji && item.caiji.kaiguan ==1">
																<view
																	v-if="item.title"
																	class="d-jiacu d-shang-10 d-wenzi-16 d-xia-10 d-younei-10  d-wenzi-hei" 
																	@click="tiezi(item.cid,item.id)"
																>{{item.title}}</view>
																<view class="d-kuan d-buhuanhang d-shang-10" @click="tiezi(item.cid,item.id)">
																	<view class="d-img-caiji">
																		<image :src="item.caiji && item.caiji.tu" mode="aspectFill" class="d-img-200 d-yuanjiao-6"></image>
																	</view>
																	<view class="d-zuo-10">
																		{{item.caiji && item.caiji.jianjie}}
																	</view>
																</view>
															</view>
															<view v-else>
																<view 
																	v-if="item.title"
																	class="d-jiacu d-shang-10 d-wenzi-16 d-xia-10 d-younei-10  d-wenzi-hei" 
																	@click="tiezi(item.cid,item.id)"
																>{{item.title}}</view>
																<view 
																	class=" d-wenzi-14 d-wenzi-huanhang"
																	@click="tiezi(item.cid,item.id)"
																>
																	{{item.neirong}}
																</view>
															</view>
															
															<!--视频-->
															<view v-if="item.shipin.kaiguan == 1" class="d-shang-10">
																<video 
																class="d-yuanjiao-10 d-kuan"
																:src="item.shipin.url"
																controls>
																</video>
															</view>
															<view <view v-if="item.caiji && item.caiji.kaiguan !=1">
																<u-album class="d-shang-10" singleSize="250" multipleSize="90" :previewFullImage="false" :urls="item.tuji"></u-album>
																<u-album class="d-shang-10" singleSize="250" multipleSize="90" :previewFullImage="false" :urls="item.jiugetu"></u-album>
															</view>
															<!--u-divider text=""></u-divider-->
															<!--音频-->
															<view v-if="item.mpsan.kaiguan == 1" class="d-shang-10">
																<block v-for="(itemmp, indexmp) in item.mpsan && item.mpsan.mp" :key="indexmp">
																	<sy-audio
																	isCountDown 
																	:ref="'audio'+item.id+indexmp"
																	:src='itemmp.url' 
																	:audioCover='mpsantu' 
																	subheading='' 
																	:audioTitle='itemmp.title'
																	:fenggeyanse="fenggeyanse"
																	@audioPlay="audioPlay('audio'+item.id+indexmp)"
																	@audioPause="audioPause"
																	>
																	</sy-audio>
																	<!--view class="" @click="mpsanbofang(itemmp.title,itemmp.url)"> {{itemmp.title}}</view-->
																</block>
															</view>
															<!--下载-->
															<Dxiazai
																v-if="item.xzzt ==1"
																:xzzt="item.xzzt"
																:xiazaifujian ="item.xiazaifujian"
																:acid="item.cid"
																:aid="item.id"
																@tiezi="tiezi"
																:yunxiazai="item.yunxiazai"
																:fenggeyanse="fenggeyanse"
															></Dxiazai>
															<!--问答进度条-->
															<view v-if="item.wendakaiguan ==1" class="d-neikuang-10 d-shang-10  d-yuanjiao-10 " :style="[{'background-color': fenggeyanse =='light'? '#fff4f4':'#242424'}]" @click="tiezi(item.cid,item.id)">
																<u-divider-d
																		text="问答求助"
																		textColor="#cf1212"
																		:lineColor="fenggeyanse =='light'? '#fff4f4':'#242424'"
																		ico="chat"
																		color="#cf1212"
																></u-divider-d>
															
																<u-steps :current="item.wenda" :beijing="fenggeyanse =='light'? '#fff4f4':'#242424'" :inactiveColor="fenggeyanse =='light'? '#ff9346':'#f5f5f5'" activeColor="#ff702e">
																	<u-steps-item title="提问中" :desc="item.tiwentime"></u-steps-item>
																	<u-steps-item title="已解答" :desc="item.yijietime"></u-steps-item>
																</u-steps>
																
															</view>
															<!--需求进度条-->
															<view v-if="item.xuqiukaiguan ==1" class="d-neikuang-10 d-shang-10  d-yuanjiao-10 " :style="[{'background-color': fenggeyanse =='light'? '#f5f9ff':'#242424'}]">
																<u-steps :current="item.xuqiu" :beijing="fenggeyanse =='light'? '#f5f9ff':'#242424'" :inactiveColor="fenggeyanse =='light'? '#adadad':'#f5f5f5'" :activeColor="fenggeyanse =='light'? '#39c9e5':'#39c9e5'">
																	<u-steps-item title="提需求" :desc="item.tixuqiutime"></u-steps-item>
																	<u-steps-item title="排期中" :desc="item.paixuqiutime"></u-steps-item>
																	<u-steps-item title="在开发" :desc="item.kaifaxuqiutime"></u-steps-item>
																	<u-steps-item title="已上线" :desc="item.wangchengxuqiutime"></u-steps-item>
																</u-steps>
															</view>
															<!--缺点修复进度-->
															<view v-if="item.bugkaiguan ==1" class="d-neikuang-10 d-shang-10  d-yuanjiao-10 " :style="[{'background-color': fenggeyanse =='light'? '#eefffa':'#242424'}]">
																<u-steps :current="item.bugs" :beijing="fenggeyanse =='light'? '#eefffa':'#242424'" activeColor="#5eb295" :inactiveColor="fenggeyanse =='light'? '#adadad':'#f5f5f5'">
																	<u-steps-item title="发现BUG" :desc="item.tibugtime"></u-steps-item>
																	<u-steps-item title="排期中" :desc="item.paixubugtime"></u-steps-item>
																	<u-steps-item title="在开发" :desc="item.kaifabugtime"></u-steps-item>
																	<u-steps-item title="已修复" :desc="item.wangchengbugtime"></u-steps-item>
																</u-steps>
															</view>
															<!--招聘-->
															<Dzhaopin
																v-if="item.zpkg ==1"
																:xinzis="item.xinzis"
																:zpyqs="item.zpyqs"
																:zhaopinbiao="item.zhaopinbiao"
																:zhaopintime="item.zhaopintime"
																:acid="item.cid"
																:aid="item.id"
																:diqua="item.diqua"
																:diqub="item.diqub"
																:diquc="item.diquc"
																:zprs="item.zprs"
																:fulilist="item.fulilist"
																:zhaopinhaoma="item.zhaopinhaoma"
																:liebiao="0"
																:keycode="keycode"
																:gongzuodizhi="item.gongzuodizhi"
																:fenggeyanse="fenggeyanse"
																@tiezi="tiezi"
															></Dzhaopin>
															<view class="d-clear"></view>
					
															<Dtags
																:flowOptions="item.huati"
																:bgcolor="fenggeyanse =='light'? '#eeeeee':'#313131'"
																:textcolor="fenggeyanse =='light'? '#414141':'#868686'"
																@flowItemClickBack="tagsurl"
																>
															</Dtags>
															<!--评论-->
															<view class="d-shang-10">
																<view class="d-wenzi-12 d-shang-10 d-kuan-baifen-50 d-zuo d-wenzi-yanse-hui">
																	{{item.shijian}}
																</view>
																<view class="d-wenzi-12 d-kuan-baifen-50 d-zuo d-wenzi-yanse-hui">
																	<view class="d-wenzi-12 d-kuan-baifen-50 d-zuo d-neirong-zuo d-buhuanhang d-shang-4" @click="openpinglun(item.cid,item.id)">
																		<!--image src="/static/images/img/xiaoxi3.png" class="d-img-25"></image-->
																		<u-icon :label="item.comments" size="28" name="/static/images/img/xiaoxi3.png"></u-icon>
																		
																	</view>
																	<view class="d-wenzi-12 d-kuan-baifen-50 d-zuo d-neirong-you" :id="'zan'+item.id">
																		
																		<image v-if="item.zanzhi == 1" src="/static/images/img/dianzan2.png" class="d-img-35" @click="dianzan(index,item.id,item.uid)"></image>
																		<image v-else src="/static/images/img/zan3.png" class="d-img-35" @click="dianzan(index,item.id,item.uid)"></image>
																		<!--u-icon size="35" name="/static/images/img/zan3.png"></u-icon-->
																	</view>
																</view>
																<view class="d-clear"></view>
															</view>
														</view>
													</view>
												</view>
											</view>
										</view>
									</view>
								</view>
							</view>
						</block>
						<u-loading-icon text="加载中..." textSize="18" :show="xialajiazai" ></u-loading-icon>
						<view :style="'display:' + (isLoading?'block':'none')">
							<template is="tempLoading"></template>
						</view>
						<view class="loadingmore" :style="'display:' + floatDisplay">
							<view class="no-more" :hidden="!isLastPage">- 无更多文章 -</view>
						</view>
						<u-divider text="已经到底啦 !" v-if="daodi">{{daodi}}</u-divider>
						<!-- 版权信息template模板 -->
						<view class="copyright" :style="'display:' + floatDisplay">
							<block data-type="template" data-is="tempCopyright" data-attr="webSiteName:webSiteName,domain:domain">
								<view> {{webSiteName}} </view>
								<view> {{banbenhao}} </view>
							</block>
						</view>
					</view>
					<view v-else-if="fengge == 4" >
						<!--极简-->
						<block data-type="template" data-is="tempCommonList" data-attr="postsList:postsList,listAdsuccess:listAdsuccess">
							<block v-for="(item, index) in postsList" :key="index">
								<view class="d-kuan">
									<view class="d-waikuang-10">
										<view class="d-kuan d-beijing-bai d-yuanjiao-10">
											
											<view class="d-zuoyou-neikuang-10 d-buhuanhang d-shangxia-neikuang-10">
												<view class="d-kuan ">
													<!--标题-->
													<view v-if="item.caiji && item.caiji.kaiguan ==1">
														<view
															v-if="item.title"
															class="d-jiacu d-shang-10 d-wenzi-16  d-xia-10 d-younei-10  d-wenzi-hei" 
															@click="tiezi(item.cid,item.id)"
														>{{item.title}}</view>
														<view class="d-kuan d-buhuanhang d-xia-10" @click="tiezi(item.cid,item.id)">
															<view class="d-img-caiji">
																<image :src="item.caiji && item.caiji.tu" mode="aspectFill" class="d-img-200 d-yuanjiao-6"></image>
															</view>
															<view class="d-zuo-10">
																{{item.caiji && item.caiji.jianjie}}
															</view>
														</view>
													</view>
													<view v-else>
														<view 
														v-if="item.title"
														:class="{'d-jiacu': true,  'd-wenzi-16': true,  'd-xia-10': true,  '': quanzishuxing['kongge'] == 1, 'd-younei-10': true,  'd-wenzi-hei': true,}" 
														@click="tiezi(item.cid,item.id)"
														>{{item.title}}
														</view>
														<view 
														:class="{
														  'd-wenzi-14': true,  
														  'd-wenzi-huanhang': true,  
														  'd-wenzi-yanse-hui': true, 
														   'd-chaochu-2':true, 
														  '': quanzishuxing['kongge'] == 1,
														}"
														@click="tiezi(item.cid,item.id)">
															{{item.neirong}}
														</view>
													</view>
													<view class="d-buhuanhang d-shang-10">
														<!--头像-->
														<view class="d-yuanjiao-40 d-box" @click="getgeren(item.uid)">
															<image v-if="item.touxiang" :src="item.touxiang" mode="aspectFill" class="d-img-20 d-yuanjiao-50 d-beijing-hui"></image>
															<image v-else src="/static/assets/images/avatar.png" mode="aspectFill" class="d-img-20 d-yuanjiao-50 d-beijing-hui"></image>
														    
														</view>
														<view class="d-kuan d-zuo-10" @click="getgeren(item.uid)">
															<view class="d-wenzi-14 d-wenzi-yanse-hui-ca">{{item.mingcheng}}</view>
														</view>
														<view class="d-kuan d-neirong-you d-wenzi-yanse-hui-ca" :id="'guanzhu'+item.uid">
															<txet>{{item.shijiandate}}</txet>
														</view>
													</view>
												</view>
												<view v-if="item.tuji">
													<view class="d-kuan-90 d-zuo-10 " v-if="item.caiji && item.caiji.kaiguan !=1 ">
														<view >
															<!--帖子内容图片-->
															<view class="d-fu-kuan-10" @click="tiezi(item.cid,item.id)">
																					
																<view v-if="item.getu ==1">
																	<block v-for="(itemtu, indextu) in item.tuji" :key="indextu">
																		<view class="d-zuo d-liangbian-10" v-if="indextu == 0">
																			<image :src="itemtu" mode="aspectFill" class="d-img-100-baihua d-yuanjiao-6 d-yinying-10 d-img-anhei"></image>
																		</view>
																	</block>
																</view>
																<view v-else>
																	<block v-for="(itemtu, indextu) in item.tuji" :key="indextu">
																		<view class="d-zuo d-liangbian-10" v-if="indextu == 0">
																			<image :src="itemtu" mode="aspectFill" class="d-img-100-baihua d-yuanjiao-6 d-yinying-10 d-img-anhei"></image>
																		</view>
																	</block>
																</view>
																
																<view class="d-clear"></view>
															</view>
															<view class="d-clear"></view>
														</view>
													</view>
												</view>
											</view>
										</view>
										
									</view>
								</view>
							</block>
						</block>
						<u-loading-icon text="加载中..." textSize="18" :show="xialajiazai" ></u-loading-icon>
						<view :style="'display:' + (isLoading?'block':'none')">
							<template is="tempLoading"></template>
						</view>
						<view class="loadingmore" :style="'display:' + floatDisplay">
							<view class="no-more" :hidden="!isLastPage">- 无更多文章 -</view>
						</view>
						<u-divider text="已经到底啦 !" v-if="daodi">{{daodi}}</u-divider>
						<!-- 版权信息template模板 -->
						<view class="copyright" :style="'display:' + floatDisplay">
							<block data-type="template" data-is="tempCopyright" data-attr="webSiteName:webSiteName,domain:domain">
								<view> {{webSiteName}} </view>
								<view> {{banbenhao}} </view>
							</block>
						</view>
					</view>
					<view v-else class="d-kuan">
						<!--综合-->
						<block data-type="template" data-is="tempCommonList" data-attr="postsList:postsList,listAdsuccess:listAdsuccess">
							<block v-for="(item, index) in postsList" :key="index">
								<view class="d-kuan">
									<view class="d-waikuang-10">
										<view class="d-kuan d-beijing-bai d-yuanjiao-10">
											<view class="d-neikuang-10 d-buhuanhang">
												<!--头像-->
												<view class="d-gaokuang-40 d-kuanggao-40 d-yuanjiao-40 d-box" @click="getgeren(item.uid)">
													<image v-if="item.touxiang" :src="item.touxiang" mode="aspectFill" class="d-img-40 d-yuanjiao-50 d-beijing-hui d-img-anhei"></image>
													<image v-else src="/static/assets/images/avatar.png" mode="aspectFill" class="d-img-40 d-yuanjiao-50 d-beijing-hui d-img-anhei"></image>
													<image v-if="item.rzs == 1" :src="v" mode="aspectFill" class="d-img-10 d-yuanjiao-50 d-beijing-hui d-box-xia"></image>
												</view>
												
												<view class="d-kuan d-zuo-10" @click="getgeren(item.uid)">
													<view class="d-wenzi-14 d-jiacu d-wenzi-hei">{{item.mingcheng}}</view>
													<view class="d-wenzi-14 d-wenzi-yanse-hui">{{item.yonghuzu}}. {{item.guishudi}}</view>
												</view>
												<view class="d-kuan-80 d-neirong-you" :id="'guanzhu'+item.uid">
													<view v-if="item.guanzhuuid == 1" @click="getGuanzhus(index,item.uid)" class="d-kuan-40 d-beijing-hei d-wenzi-yanse-bai-0 d-neikuang-zuoyou-2-shangxia-4 d-wenzi-12 d-yuanjiao-50 d-neirong-juzhong" >已关注</view>
													<view v-else @click="getGuanzhus(index,item.uid)" class="d-kuan-40 d-beijing-hui-f6 d-wenzi-hei d-neikuang-zuoyou-2-shangxia-4 d-wenzi-12 d-yuanjiao-50 d-neirong-juzhong" >关 注</view>
												</view>
											</view>
											<view class="d-zuoyou-neikuang-10 ">
												<!--标题-->
												<view v-if="item.caiji && item.caiji.kaiguan ==1">
													<view
														v-if="item.title"
														class="d-jiacu d-shang-10 d-wenzi-16 d-xia-10 d-younei-10  d-wenzi-hei" 
														@click="tiezi(item.cid,item.id)"
													>{{item.title}}</view>
													<view class="d-kuan d-buhuanhang" @click="tiezi(item.cid,item.id)">
														<view class="d-img-caiji">
															<image :src="item.caiji && item.caiji.tu" mode="aspectFill" class="d-img-200 d-yuanjiao-6"></image>
														</view>
														<view class="d-zuo-10">
															{{item.caiji && item.caiji.jianjie}}
														</view>
													</view>
												</view>
												<view v-else>
													<view 
													v-if="item.title"
													:class="{'d-jiacu': true,  'd-wenzi-16': true,  'd-xia-10': true,  'd-zuonei-50': quanzishuxing['kongge'] == 1, 'd-younei-10': true,  'd-wenzi-hei': true,}" 
													@click="tiezi(item.cid,item.id)"
													>{{item.title}}
													</view>
													<view 
													:class="{
													  'd-wenzi-14': true,  
													  'd-wenzi-huanhang': true,  
													  'd-wenzi-yanse-hui': true,  
													  'd-qiankong-50': quanzishuxing['kongge'] == 1,
													}"
													@click="tiezi(item.cid,item.id)">
														{{item.neirong}}
													</view>
												</view>
												
												<!--视频-->
												<view v-if="item.shipin.kaiguan == 1" class="d-shang-10">
													<video 
													class="d-yuanjiao-10 d-kuan"
													:src="item.shipin.url"
													controls>
													</video>
												</view>
												<!--音频-->
												<view v-if="item.mpsan.kaiguan == 1" class="d-shang-10">
													<block v-for="(itemmp, indexmp) in  item.mpsan.mp" :key="indexmp">
														<sy-audio 
														isCountDown 
														:ref="'audio'+item.id+indexmp"
														:src='itemmp.url' 
														:audioCover='mpsantu' 
														subheading='' 
														:audioTitle='itemmp.title'
														:fenggeyanse="fenggeyanse"
														@audioPlay="audioPlay('audio'+item.id+indexmp)"
														@audioPause="audioPause"
														>
														</sy-audio>
														
														<!--view class="" @click="mpsanbofang(itemmp.title,itemmp.url)"> {{itemmp.title}}</view-->
													</block>
												</view>
												<view <view v-if="item.caiji && item.caiji.kaiguan !=1">
													<!--帖子内容图片-->
													
													<view class="d-fu-kuan-10" @click="tiezi(item.cid,item.id)">
														<view v-if="item.getu ==1">
															<block v-for="(itemtu, indextu) in item.tuji" :key="indextu">
																<view class="d-kuan-30 d-zuo d-liangbian-10" v-if="indextu < 3">
																	<image :src="itemtu" mode="aspectFill" class="d-img-100-bai d-yuanjiao-6 d-yinying-10 d-img-anhei"></image>
																</view>
															</block>
														</view>
														<view v-else>
															<block v-for="(itemtu, indextu) in item.tuji" :key="indextu">
																<view class="d-kuan-30 d-zuo d-liangbian-10" v-if="indextu < 9">
																	<image :src="itemtu" mode="aspectFill" class="d-img-100-bai d-yuanjiao-6 d-yinying-10 d-img-anhei"></image>
																</view>
															</block>
														</view>
														
														<view class="d-clear"></view>
													</view>
													<view class="d-clear"></view>
													<!--帖子九格图-->
													<view class="d-fu-kuan-10" @click="tiezi(item.cid,item.id)">
														<block v-for="(itemtu, indextu) in item.jiugetu" :key="indextu">
															<view class="d-kuan-30 d-zuo d-liangbian-10" v-if="indextu < 9">
																<image :src="itemtu" mode="aspectFill" class="d-img-100-bai d-yuanjiao-6 d-yinying-10"></image>
															</view>
															
														</block>
														
														<view class="d-clear"></view>
													</view>
												</view>
												<!--下载-->
												<Dxiazai
													v-if="item.xzzt ==1"
													:xzzt="item.xzzt"
													:xiazaifujian ="item.xiazaifujian"
													:acid="item.cid"
													:aid="item.id"
													@tiezi="tiezi"
													:yunxiazai="item.yunxiazai"
													:fenggeyanse="fenggeyanse"
												></Dxiazai>
												<!--问答进度条-->
												<view v-if="item.wendakaiguan ==1" class="d-neikuang-10 d-shang-10  d-yuanjiao-10 " :style="[{'background-color': fenggeyanse =='light'? '#fff4f4':'#242424'}]" @click="tiezi(item.cid,item.id)">
													<u-divider-d
															text="问答求助"
															textColor="#cf1212"
															:lineColor="fenggeyanse =='light'? '#fff4f4':'#242424'"
															ico="chat"
															color="#cf1212"
													></u-divider-d>

													<u-steps :current="item.wenda" :beijing="fenggeyanse =='light'? '#fff4f4':'#242424'" :inactiveColor="fenggeyanse =='light'? '#ff9346':'#f5f5f5'" activeColor="#ff702e">
														<u-steps-item title="提问中" :desc="item.tiwentime"></u-steps-item>
														<u-steps-item title="已解答" :desc="item.yijietime"></u-steps-item>
													</u-steps>
													
												</view>
												<!--需求进度条-->
												<view v-if="item.xuqiukaiguan ==1" class="d-neikuang-10 d-shang-10  d-yuanjiao-10 " :style="[{'background-color': fenggeyanse =='light'? '#f5f9ff':'#242424'}]">
													<u-steps :current="item.xuqiu" :beijing="fenggeyanse =='light'? '#f5f9ff':'#242424'" :inactiveColor="fenggeyanse =='light'? '#adadad':'#f5f5f5'" :activeColor="fenggeyanse =='light'? '#39c9e5':'#39c9e5'">
														<u-steps-item title="提需求" :desc="item.tixuqiutime"></u-steps-item>
														<u-steps-item title="排期中" :desc="item.paixuqiutime"></u-steps-item>
														<u-steps-item title="在开发" :desc="item.kaifaxuqiutime"></u-steps-item>
														<u-steps-item title="已上线" :desc="item.wangchengxuqiutime"></u-steps-item>
													</u-steps>
												</view>
												<!--缺点修复进度-->
												<view v-if="item.bugkaiguan ==1" class="d-neikuang-10 d-shang-10  d-yuanjiao-10 " :style="[{'background-color': fenggeyanse =='light'? '#eefffa':'#242424'}]">
													<u-steps :current="item.bugs" :beijing="fenggeyanse =='light'? '#eefffa':'#242424'" activeColor="#5eb295" :inactiveColor="fenggeyanse =='light'? '#adadad':'#f5f5f5'">
														<u-steps-item title="发现BUG" :desc="item.tibugtime"></u-steps-item>
														<u-steps-item title="排期中" :desc="item.paixubugtime"></u-steps-item>
														<u-steps-item title="在开发" :desc="item.kaifabugtime"></u-steps-item>
														<u-steps-item title="已修复" :desc="item.wangchengbugtime"></u-steps-item>
													</u-steps>
												</view>
												<!--招聘-->
												<!--招聘-->
												<Dzhaopin
													v-if="item.zpkg ==1"
													:xinzis="item.xinzis"
													:zpyqs="item.zpyqs"
													:zhaopinbiao="item.zhaopinbiao"
													:zhaopintime="item.zhaopintime"
													:acid="item.cid"
													:aid="item.id"
													:diqua="item.diqua"
													:diqub="item.diqub"
													:diquc="item.diquc"
													:zprs="item.zprs"
													:fulilist="item.fulilist"
													:zhaopinhaoma="item.zhaopinhaoma"
													:liebiao="0"
													:keycode="keycode"
													:gongzuodizhi="item.gongzuodizhi"
													@tiezi="tiezi"
												></Dzhaopin>
												<Dtags
													:flowOptions="item.huati"
													:bgcolor="fenggeyanse =='light'? '#eeeeee':'#313131'"
													:textcolor="fenggeyanse =='light'? '#414141':'#868686'"
													@flowItemClickBack="tagsurl"
													>
												</Dtags>
												<!--评论-->
												<view class="d-shangxia-neikuang-10">
													<view class="d-wenzi-12 d-kuan-baifen-50 d-zuo d-wenzi-yanse-hui">
														{{item.shijian}}
													</view>
													<view class="d-wenzi-12 d-kuan-baifen-50 d-zuo d-wenzi-yanse-hui">
														<view class="d-wenzi-12 d-kuan-baifen-50 d-zuo d-neirong-zuo d-buhuanhang d-shang-4" @click="openpinglun(item.cid,item.id)">
															<!--image src="/static/images/img/xiaoxi3.png" class="d-img-25"></image-->
															<u-icon :label="item.comments" size="28" name="/static/images/img/xiaoxi3.png"></u-icon>
															
														</view>
														<view class="d-wenzi-12 d-kuan-baifen-50 d-zuo d-neirong-you" :id="'zan'+item.id">
					
															<image v-if="item.zanzhi == 1" src="/static/images/img/dianzan2.png" class="d-img-35" @click="dianzan(index,item.id,item.uid)"></image>
															<image v-else src="/static/images/img/zan3.png" class="d-img-35" @click="dianzan(index,item.id,item.uid)"></image>
															<!--u-icon size="35" name="/static/images/img/zan3.png"></u-icon-->
														</view>
													</view>
													<view class="d-clear"></view>
												</view>
												
											</view>
										</view>
										<!--评论-->
										<view class="">
											
										</view>
									</view>
								</view>
							</block>
						</block>
						<u-loading-icon text="加载中..." textSize="18" :show="xialajiazai" ></u-loading-icon>
						<view :style="'display:' + (isLoading?'block':'none')">
							<template is="tempLoading"></template>
						</view>
						<view class="loadingmore" :style="'display:' + floatDisplay">
							<view class="no-more" :hidden="!isLastPage">- 无更多文章 -</view>
						</view>
						<u-divider text="已经到底啦 !" v-if="daodi">{{daodi}}</u-divider>
						<!-- 版权信息template模板 -->
						<view class="copyright" :style="'display:' + floatDisplay">
							<block data-type="template" data-is="tempCopyright" data-attr="webSiteName:webSiteName,domain:domain">
								<view> {{webSiteName}} </view>
								<view> {{banbenhao}} </view>
							</block>
						</view>
					</view>
					
					
					<!-- 无法访问网络 -->
					<view class="showerror" :style="'display:' + showerror">
						<!--image src="/static/images/cry80.png" style="height:100rpx;width:100rpx"></image-->
						<view class="errortext">
							暂时无法访问网络，下拉重试...
						</view>
					</view>
					<privacy ref="privacy" type="bottom" :refuse="refuse" />
					<scroll-view class="uni-body" scroll-y="true"></scroll-view>
				</view>
			</view>
			<!--右边PC端-->
			<!-- #ifdef H5 -->
			<view class="d-xianshi-pc d-kuan-pc-25 d-zuo">
				
			</view>
			<!-- #endif -->
		
		</view>
	</page-meta>
	<!--评论-->
	<!---->
	<!--self.jiazai = false;
	self.tiezijiazai = true;
	self.tiezi = res.data.data.list;
	self.pingluntongji = res.data.data.comments;-->
	<u-popup :show="pinglunkaiguan" :round="10" @close="pinglunguan" mode="bottom" safeArea :closeOnClickOverlay="true" :bgColor="fenggeyanse=='light' ? '#ffffff' : '#2b2b2b'">
		<view class="d-gao-500 d-gundong-shangxia">
			<Dcomment
				ref="hbComment" 
				@add="add" 
				@del="del" 
				@like="like"
				@getZan="getZan" 
				@getShoucang="getShoucang" 
				@focusOn="focusOn"
				@pingluncontent="pingluncontent"
				@guanbi="pinglunguan"
				:keycode="keycode"
				:shipinhuifudata="shipinhuifudata"
				:pingluntongji="pingluntongji"
				:tieziindex="tieziindex"
				:deleteTip="'确认删除？'"
				:cmData="tiezidata" 
				:dianzan="dianzan"
				:shoucang="shoucang"
				:domain="domain"
				:shouye="1"
				:tieiddata="tieiddata"
				:fenggeyanse="fenggeyanse"
			>
			</Dcomment>
		</view>
	</u-popup>
	<!--头部-->
	<u-popup :show="bianliankaiguan" @close="bianlianclose" @open="bianlianopen" :round="20" :closeOnClickOverlay="true" :bgColor="fenggeyanse=='light' ? '#ffffff' : '#2b2b2b'"> 
		<view class="d-kuan d-wenzi-hei ">
			<view class="d-kuan d-juzhong d-shang-20"> 变脸术 </view>
			<u-row
				justify="space-between"
				gutter="20"
			>
				<u-col span="4" @click="bianlianshu(3)">
					<view class="d-kuan d-shangxian-juzhong d-shang-10" >
						<u--image :src="bianlian0" mode="widthFix" width="100" height="100"></u--image>
					</view>
					<view class="d-kuan d-shangxian-juzhong d-wenzi-12 ">
						简约型
						<txet class="d-zuo-10" v-if="bianlianshuid == 3"><u-icon name="checkmark-circle" color="#3b6bb4" size="14"></u-icon></txet>
					</view>
				</u-col>
				<u-col span="4" @click="bianlianshu(1)">
					<view class="d-kuan d-shangxian-juzhong d-shang-10" >
						<u--image :src="bianlian1" mode="widthFix" width="100" height="100"></u--image>
					</view>
					<view class="d-kuan d-shangxian-juzhong d-wenzi-12 ">
						LOGO型
						<txet class="d-zuo-10" v-if="bianlianshuid == 1"><u-icon name="checkmark-circle" color="#3b6bb4" size="14"></u-icon></txet>
					</view>
				</u-col>
				<u-col span="4" @click="bianlianshu(2)">
					<view class="d-kuan d-shangxian-juzhong d-shang-10" >
						<u--image :src="bianlian2" mode="widthFix" width="100" height="100"></u--image>
					</view>
					<view class="d-kuan d-shangxian-juzhong d-wenzi-12">
						海报型
						<txet class="d-zuo-10" v-if="bianlianshuid == 2"><u-icon name="checkmark-circle" color="#3b6bb4" size="14"></u-icon></txet>
					</view>
				</u-col>
			</u-row>
			<u-gap height="44" :bgColor="fenggeyanse=='light' ? '#ffffff' : '#2b2b2b'"></u-gap>
		</view>
	</u-popup>

	<!--zwTabBar 
	:defaultSel="tabBarIdx" 
	:fenggeyanse="fenggeyanse" 
	:list="fenggeyanse=='light' ? tabBarList : tabBarListhei" 
	@clickTab="clickTab" 
	:bigIdx="2"
	:hoverColor="fenggeyanse=='light' ? '#000000' : '#41b883'"
	:color="fenggeyanse=='light' ? '#41b883' : '#6b6b6b'"
	@update:current="tabBarIdx = $event"
	>
	</zwTabBar-->
</view>
</template>

<script>
import privacy from "@/components/privacy/privacy";  //引入头部组件
import toubu from "@/components/toubu/toubu";  //引入头部组件
import Dtags from "@/components/d-tags/d-tags";  //引入组件
import Dwaterfall from "@/components/d-waterfall/d-waterfall";  // 引入组件
import Dxiazai from "@/components/d-xiazai/d-xiazai";  //引入组件
import Dtoptishi from "@/components/d-top-tishi/d-top-tishi";  //引入组件
import Dzhaopin from "@/components/d-zhaopin/d-zhaopin";  //引入组件
import Dcomment from "@/components/d-comment/d-comment";  //引入组件
import DtoubuSou from "@/components/d-toubu-sou/d-toubu-sou";  //引入组件
import DdragButton from "@/components/d-drag-button/d-drag-button";
import DdragButtons from "@/components/d-drag-button-s/d-drag-button-s";
import zwTabBar from "@/components/zw-tabbar/zw-tabbar";
//import wx from "weixin-js-sdk";
//var wx = require('weixin-js-sdk');

var Api = require("../../utils/api.js");
var util = require("../../utils/util.js");
var wxApi = require("../../utils/wxApi.js");
var wxRequest = require("../../utils/wxRequest.js");
import config from "../../utils/config";
var pageCount = config.getPageCount;
var webSiteName = config.getWebsiteName;
var domain = config.getDomain;
var topNav = config.getIndexNav;
var banbenhao = config.getDuixinbanbenhao;
var qiandaokai = config.getQiandaokai;
var wss = config.getWss;
var kaifazhe = config.getKaifazhe;
var jiansuokai = config.getJiansuokai;
//var uid = uni.getStorageSync('memberuid');

export default {
  data() {
    return {
      postsList: [],
	  tubiaoList: [],
      postsShowSwiperList: [],
      isLastPage: false,
      page: 1,
	  swiperheight: '',
	  swiperItemHeight: '',
      search: '',
      categories: 0,
      showerror: "none",
      showCategoryName: "",
      categoryName: "",
      showallDisplay: "block",
      displayHeader: "none",
      displaySwiper: "none",
      floatDisplay: "none",
      displayfirstSwiper: "none",
      topNav: topNav,
      webSiteName: webSiteName,
	  banbenhao: banbenhao,
      domain: domain,
	  jiazai:true,
      isFirst: false,
      // 是否第一次打开,
      isLoading: false,
	  //下载加载提示
	  xialajiazai: false,
	  www: {},
	  //到底
	  daodi: false,
	  scrollTop:0,
	  uid:'',
	  zanzhi: false,
	  userInfo:'',
	  zhiding: [],
	  qiandao: '',
	  yiqiandao: '',
	  qiandaouidlist: [],
	  qiandaokai: qiandaokai,
	  tuijianquanzilist: [],
	  tongji: [],
	  v:config.getDomain+'/static/default/web/img/V.png',
	  guanzhutu:config.getDomain+'/static/default/web/img/data.png',
	  tags:{
	  		flowList:[],
			flowItemValue:'',//String类型可不填或空 Obj类型时必填，以上为例，填name
			flowItemMargin:'5',
			flowItemRadius:'20',
			flowItemBgColor: '#eeeeee',
			flowItemTextColor:'#3a3a3a'
	  	},
		fengge: '',
		columns:2,
		tiezileixing:[
			{
				name: '关注',
			}, {
				name: '首页',
			}
		],
		tiezileixingxuanzhong: 1,
		fenggeshow: false,
		fenggevalue: [
                    ['综合型', '瀑布图', '简约型', '极简型']
                ],
		fenggezhi:'',
		fenggemoren:'',
		fenggekaiguan: '',
		// 关注
		guanzhuuid:'',
		//是否有关注内容
		inguanzhuuid:'',
		member:{},
		shouxin:[],
		toptishishow:false,
		dianzantouxiang:'',
		dianzanname:'',
		duanxintongzhi:'',
		tongzhileixing:'',
		keycode:'',
		ceshitongshi:'',
		gaodu:'',
		kaifazhe:kaifazhe,
		shipinhuifudata:true,
		tiezidata: [],
		pingluntongji: 0,
		tiezijiazai:false,
		jiazai:true,
		pinglunkaiguan:false,
		gundongkai:0,
		tieziindex:{},
		pingluncontents:'',
		tieiddata:'',
		shoucang:[],
		jiansuokais:jiansuokai,
		searchValue: "",
		shezhitubiao:false,
		bianliankaiguan:false,
		bianlian0:config.getDomain+'/static/default/web/img/toubutu.png',
		bianlian1:config.getDomain+'/static/default/web/img/toubutu1.png',
		bianlian2:config.getDomain+'/static/default/web/img/toubutu2.png',
		mpsantu:config.getDomain+'/static/default/web/img/mpsan.png',
		bianlianshuid:'',
		style: "--theme-color: #fff",
		anheimoshi:'',
		fenggeyanse:'',
		wenzifengge: '#000000',
		mpsanshow:false,
		mpsanurl:'',
		mpsantitle:'',
		quanzishuxing:[],
		tabBarIdx: 0,
		tabBarList: [{
		        // "isTabBar":true,//是tabBar页面
		        // "pagePath": "/pages/home",
		        "isTabBar":true,//是tabBar页面
		        "pagePath": "/pages/index/index",
		        "iconPath": "/static/images/shouye.png",
		        "selectedIconPath": "/static/images/shouye2.png",
		        "text": "首页"
		    }, {
		        // "pagePath": "/pages/home",
				"isTabBar":true,//是tabBar页面
		        "pagePath": "/pages/quan/quan",
		        "iconPath": "/static/images/quan.png",
		        "selectedIconPath": "/static/images/quan2.png",
		        "text": "圈子"
		    },
		    {
		        // "pagePath": "/pages/home",
				"isTabBar":true,//是tabBar页面
		        "pagePath": "/pages/fabu/fabu",
		        "iconPath": "/static/images/fabu2.png",
		        "selectedIconPath": "/static/images/fabu2.png",
		        "text": ""
		    },
		    {
		        // "pagePath": "/pages/home",
				"isTabBar":true,
		        "pagePath": "/pages/xiaoxi/xiaoxi",
		        "iconPath": "/static/images/duanxin0.png",
		        "selectedIconPath": "/static/images/duanxin1.png",
		        "text": "消息"
		    }, {
		        // "pagePath": "/pages/home",
				"isTabBar":true,//是tabBar页面
		        "pagePath": "/pages/wo/wo",
		        "iconPath": "/static/images/wo.png",
		        "selectedIconPath": "/static/images/wo2.png",
		        "text": "我的"
		    }
		],
		tabBarListhei: [{
		        // "isTabBar":true,//是tabBar页面
		        // "pagePath": "/pages/home",
		        "isTabBar":true,//是tabBar页面
		        "pagePath": "/pages/index/index",
		        "iconPath": "/static/images/shouye.png",
		        "selectedIconPath": "/static/images/shouye2.png",
		        "text": "首页"
		    }, {
		        // "pagePath": "/pages/home",
				"isTabBar":true,//是tabBar页面
		        "pagePath": "/pages/quan/quan",
		        "iconPath": "/static/images/quan.png",
		        "selectedIconPath": "/static/images/quan2.png",
		        "text": "圈子"
		    },
		    {
		        // "pagePath": "/pages/home",
				"isTabBar":true,//是tabBar页面
		        "pagePath": "/pages/xiaoxi/xiaoxi",
		        "iconPath": "/static/images/duanxin0.png",
		        "selectedIconPath": "/static/images/duanxin1.png",
		        "text": "消息"
		    },
		    {
		        // "pagePath": "/pages/home",
				"isTabBar":true,//是tabBar页面
		        "pagePath": "/pages/xiaoxi/xiaoxi",
		        "iconPath": "/static/images/duanxin0.png",
		        "selectedIconPath": "/static/images/duanxin1.png",
		        "text": "消息"
		    }, {
		        // "pagePath": "/pages/home",
				"isTabBar":true,//是tabBar页面
		        "pagePath": "/pages/wo/wo",
		        "iconPath": "/static/images/wo.png",
		        "selectedIconPath": "/static/images/wo.png",
		        "text": "我的"
		    }
		],
		weixinfenxiangmiyue:{}

    };
  },
	components: {  
	    Dtags, // 这里将 Dtags 组件注册到当前页面的组件列表中  
		toubu,
		Dwaterfall,
		Dxiazai,
		Dtoptishi,
		Dzhaopin,
		Dcomment,
		DtoubuSou,
		DdragButton,
		DdragButtons,
		zwTabBar
	},
	mounted() {
		let _this = this
		if (uni.getPrivacySetting){
		    uni.getPrivacySetting({
		        success: (res) => {
		            //console.log("getPrivacySetting",res)
		            if (res.needAuthorization){
		                _this.$refs.privacy.open()
		            }
		            // 返回结果为: res = { needAuthorization: true/false, privacyContractName: '《xxx隐私保护指引》' }
		        },
		        fail: () => {},
		        complete:() => {}
		    })
		}
		
	},
  props: {},
  //分享给单独微信
  onShareAppMessage: function () {
	  var duixin = this;
    return {
      title: '“' + webSiteName + '”小程序',
      path: 'pages/index/index',
	  //imageUrl: duixin.www['logoico'],
      success: function (res) {// 转发成功
      },
      fail: function (res) {// 转发失败
      }
    };
  },
  //分享到朋友圈
  onShareTimeline: function () {
	  var duixin = this;
	  return {
	    title: '“' + webSiteName + '”小程序',
	    path: 'pages/index/index',
		//imageUrl: duixin.www['logoico'],
	    success: function (res) {// 转发成功
	    },
	    fail: function (res) {// 转发失败
	    }
	  };
  },
  onPageScroll: function (e) {
	  var self = this;
	  this.scrollTop = e.scrollTop;
  },
  onPullDownRefresh: function () {
    var self = this;
    self.setData({
      showerror: "none",
      showallDisplay: "block",
      displaySwiper: "none",
      floatDisplay: "none",
      isLastPage: false,
      page: 1,
      postsShowSwiperList: [],
    });
	
    this.fetchTopFivePosts();
	this.tubiaoPosts();

    this.fetchPostsData(self);
	self.getTongjis(uid);
  },
  onReachBottom: function () {
    var self = this;
    if (!self.isLastPage) {
      self.setData({
        page: self.page + 1,
		xialajiazai: true,
      });
	  //console.log('当前页xialajiazai', self.xialajiazai);
      //console.log('当前页' + self.page);
      this.fetchPostsData(self);
    } else {
      //console.log('最后一页');
    }
  },
	onLoad: function (options,event) {
		var duixin = this;
		
		uni.getSystemInfo(
			{
				success: function(res) {
					console.log('theme',res.theme); // 客户端平台
				}
			}
		);
		uni.onThemeChange(function (res) {
			console.log('000',res);
		});
		var initialThemes = uni.getStorageSync('theme');
		if(!initialThemes){
			duixin.fenggeyanse = 'light';
			uni.setStorageSync('theme', 'light');
		} else {
			duixin.fenggeyanse = initialThemes;
		}
		var tabBarIdxdata = uni.getStorageSync('tabBarIdx');
		
		/*if(!initialThemes){
			duixin.tabBarIdx = '0'
			uni.setStorageSync('tabBarIdx', '0');
		} else {
			duixin.tabBarIdx = tabBarIdxdata
		}*/
		
		duixin.getGaodu();
		//console.log('duanxintongzhi0',this.duanxintongzhi);
		uni.setNavigationBarTitle({
			title: webSiteName
		});
		this.getWww(); // 网站信息
		// #ifdef H5
		duixin.getWeixinFenxiangMiyueData();
		// #endif
		this.tubiaoPosts(); // 图标导航
		this.getTag(); // 标签
		this.getZhiding(); // 置顶
		this.getTuijianquanzis(); // 推荐圈子
		duixin.getQuanzishuxingData();
		var self = this;
		self.fetchTopFivePosts();
		 // 判断用户是不是第一次打开，弹出添加到我的小程序提示
		var isFirstStorage = uni.getStorageSync('isFirst'); // console.log(isFirstStorage);
		if (!isFirstStorage) {
		  self.setData({
			isFirst: true
		  });
		  uni.setStorageSync('isFirst', 'no'); // console.log(uni.getStorageSync('isFirst'));
		  setTimeout(function () {
			self.setData({
			  isFirst: false
			});
		  }, 5000);
		}
		var userInfo = uni.getStorageSync('userInfo');
		var keycode = uni.getStorageSync('keycode');
		duixin.keycode = keycode;
		self.userInfo = userInfo;
		if(duixin.qiandaokai==1){
			self.getQiandaouid(); // 展示签到用户
		}
		
		self.getTongjishuliang(); // 用数量统计
		

		if (userInfo) {
			self.showuid = true;
			var member = uni.getStorageSync('member');
			var uid = uni.getStorageSync('memberuid');
			self.uid = uid;
			self.member = member;
			self.fetchPostsData(self);
			//self.getimin(uid,member);
			
			
		} else {
			self.uid = '';
			self.fetchPostsData(self);
			
		}
		//实名判断
		duixin.shiminghuifu();
		//获取当前网址
		self.getDangqianurl();

		
		var anheimoshi = uni.getStorageSync('anheimoshi');
		if(anheimoshi=='true'){
			duixin.anheimoshi = false;
		} else {
			duixin.anheimoshi = true;
		}
		
	},
    onShow() {
		var duixin = this;

      uni.setStorageSync('openLinkCount', 0);
      var nowDate = new Date();
      nowDate = nowDate.getFullYear() + "-" + (nowDate.getMonth() + 1) + '-' + nowDate.getDate();
      nowDate = new Date(nowDate).getTime();
	  duixin.tishi();
	  var userInfo = uni.getStorageSync('userInfo');
	  //console.log("userInfo",userInfo);
	  
	  
	  if (userInfo) {
		  
		  //duixin.getimin(duixin.uid,duixin.member);
		  if(duixin.qiandaokai ==1) {
			  this.getzidongQiandaourl();
			  //this.getQiandaouid();
			}
		}
		duixin.getTongjis(duixin.uid);
    },
	onReady() {
		/*this.$nextTick(() => {
		uni.createSelectorQuery().in(this).select('.swiper-item').boundingClientRect(data => {
		console.log("高度1"+data);
		}).exec()
		});*/ 
	},
	onUnload: function () {
		this.audioDestroy();
		console.log('销毁');
	},
	onHide: function ()  {
		this.audioDestroy()
	},
	watch: {  
		// 监听全局状态的变化  
		currentTab(newVal) {  
			this.tabBarIdx = newVal;  
		}  
	},
    methods: {
		audioDestroy(){
			const refNames = Object.keys(this.$refs);
			// 过滤出引用名为"bbb"和"ccc"的组件  refName !== 'ccc125' !/`event`|privacy|hbComment/.test(refName)
			const filteredRefs = refNames.filter(refName => refName !== 'privacy' && refName !== 'hbComment' && refName !== 'audio');  
			//console.log('refNames',filteredRefs);
			// 循环遍历引用名称  
			filteredRefs.forEach((refName) => {  
			  // 获取对应的引用对象（即子组件实例）
			  this.$refs[refName][0].zanting(0);
			  
			  // 在这里可以对refObject进行操作，例如调用方法或访问数据属性等  
			  //console.log(refName, refObject);  
			});
			console.log('销毁');
			
		},
		getGaodu(){
		  var duixin = this;
		
		  // #ifdef H5
		   duixin.gaodu='-44';
		  // #endif
		  // #ifdef APP
		   duixin.gaodu='0';
		  // #endif
		  // #ifdef MP
				duixin.gaodu='0';
		  // #endif
		},
		onScroll(e) {
			//console.log('gaogaogaogao:', e.detail);
			// 可以将滚动高度保存到 data 中，便于在其它地方使用
			//this.scrollTop = e.detail.scrollTop
		},
		//内容帖子
		tiezi(quanid,tieid) {
			console.log('查看帖子');
			var url = '../tiezi/tiezi?qid='+quanid+'&id='+tieid;
			uni.navigateTo({
				url: url
			});
		},
		refuse() {
		    // this.$refs.privacy.open()
		    uni.showToast({
		        icon: 'none',
		        title: '非常抱歉无法为您提供服务，如需服务请先同意相关协议~',
				   duration: 3000
		    });
		    return
		},
		getWww() {
			var self = this;
			self.setData({
			  www: []
			});
			var uid = self.userInfo;
			var getTubiaoRequest = wxRequest.getRequest(Api.getWwwUrl(uid,self.uid,self.userInfo));
			getTubiaoRequest.then(response => {
				if (response.data.code == 1) {
				  //console.log(response.data.data); 
				  self.www = response.data.data
				  self.getbianlian(response.data.data);
				} else {
				  self.setData({
					displaySwiper: "none"
				  });
				}
			});
		},
		//获取图标列表
		tubiaoPosts() {
			var self = this; 
			self.setData({
			  tubiaoList: []
			});
			var getTubiaoRequest = wxRequest.getRequest(Api.getTubiaoUrl());
			getTubiaoRequest.then(response => {
				if (response.data.code == 1) {
				  //console.log(response.data.data); 
				  self.tubiaoList = response.data.data
				} else {
				  self.setData({
					displaySwiper: "none"
				  });
				}
			});
		},


		getGao() {

			/*#ifdef APP-PLUS || H5*/
			var self = this; 
			setTimeout(function () {
				uni.getSystemInfo({
					success: (res) => {
						let info = uni.createSelectorQuery();
						info.select(".swiper-item-wrap").boundingClientRect(data => {
							//console.log("高度：",data.height);
							self.swiperheight = data.height;
						}).exec();
					}
				});
			}, 300) 
			/*#endif*/
			/*#ifdef MP-WEIXIN*/
			var self = this; 
			setTimeout(function () {
				uni.getSystemInfo({
					success: (res) => {
						let info = uni.createSelectorQuery();
						info.select(".swiper-item-wrap").boundingClientRect(data => {
							//console.log("高度：",data);
							self.swiperheight = data.height;
						}).exec();
					}
				});
			}, 500)

			/*#endif*/

			
		},

		formSubmit: function (e) {
		  var url = '../list/list';
		  var key = '';
			 //console.log('earch');
			  if (e.currentTarget.id == "search-input") {
				key = e.detail.value;
			  } else {
				key = e.detail.value.input;
			  }

			  if (key != '') {
				url = url + '?search=' + key;
				uni.navigateTo({
				  url: url
				});
			  } else {
				uni.showModal({
				  title: '提示',
				  content: '请输入内容',
				  showCancel: false
				});
			  }
		},
		
		fetchTopFivePosts: function () {
		  var self = this; //获取滑动图片的文章
		  var getPostsRequest = wxRequest.getRequest(Api.getSwiperUrl());
		  getPostsRequest.then(response => {
			
			if (response.data.code == 1) {
			  self.setData({
				postsShowSwiperList: self.postsShowSwiperList.concat(response.data.data.map(function (item) {
				  if (!item.thumb) {
					item.thumb = "/static/images/logo700.png";
				  }
				  item.redicttype = 'apppage';
				  item.url = '../detail/detail?id=' + item.id;
				  return item;
				})),
				displaySwiper: "block"
			  });
			  /*this.$nextTick(() => {
			  	this.getGao();
			  });*/
			} else {
			  self.setData({
				displaySwiper: "none"
			  });
			}
		  }).catch(function (response) {
			//console.log(response);
			self.setData({
			  showerror: "block",
			  floatDisplay: "none"
			});
		  }).finally(function () {});
		},
		//获取列表数据
		fetchPostsData: function (data) {
		  var self = this;
		  var duixin =this;
		  if (!data) data = {};
		  if (!data.page) data.page = 1;
		  if (!data.categories) data.categories = 0;
		  if (!data.search) data.search = '';
		  if (!data.unuid) data.unuid = duixin.uid;
		  if(self.tiezileixingxuanzhong ==0){
				if(!self.uid) {
					uni.redirectTo({
						url: '/pages/login/login'
					});
				} else {
					data.guanzhuuid = self.uid
				}
			  //console.log('’点击了0');
		  } else {
			  data.guanzhuuid =''
		  }

		  if (data.page === 1) {
			self.setData({
			  postsList: []
			});
		  };
		  self.setData({
			isLoading: true
		  });
		  var fenggezhis = uni.getStorageSync('fenggezhi');
	  
			var getPostsRequest = wxRequest.getRequest(Api.getQuanindexUrl(data,self.uid));
			getPostsRequest.then(response => {
				//console.log("列表",response.data.data);
			if (response.data.code == 1) {
				self.jiazai = false;
				self.xialajiazai = false;
				if (response.data.data && response.data.data.length) {
					// 选择风格
					var fenggezhi = uni.getStorageSync('fenggezhi');
					if(fenggezhi) {
						self.fengge = fenggezhi;
					} else {
						self.fengge = response.data.data[0].fengge;
					}
					
					self.fenggekaiguan = response.data.data[0].fenggekaiguan;
					self.inguanzhuuid = response.data.data[0].inguanzhuuid;
					
					//判断列表情况
				  if (response.data.data && response.data.data.length < pageCount) {
					self.setData({
					  isLastPage: true,
					  isLoading: false,
					});
				  }
				  //console.log('当前页下',self.xialajiazai);
				  self.setData({
					floatDisplay: "block",
					postsList: self.postsList.concat(response.data.data.map(function (item) {
				
					  if (item.thumb == null || item.thumb == '') {
						item.thumb = "/static/images/logo700.png";
					  }

					  return item;
					}))
				  });
				  
				} else {
				  if (response.data.code == "rest_post_invalid_page_number") {
					self.setData({
					  isLastPage: true,
					  isLoading: false
					});

					uni.showToast({
					  title: '没有更多内容',
					  mask: false,
					  duration: 1500
					});
					
				  } else {
					// 隐藏提示
					uni.showToast({
					  title: response.data.message,
					  duration: 1500
					});
					uni.showToast({
					  title: '没有更多内容',
					  duration: 500
					});
					self.daodi = true;
					//console.log('没有了',self.daodi);
				  }
				}
			  }
			}).catch(function (response) {
			  if (data.page == 1) {
				self.setData({
				  showerror: "block",
				  floatDisplay: "none"
				});
			  } else {
				uni.showModal({
				  title: '加载失败',
				  content: '加载数据失败,请重试.',
				  showCancel: false
				});
				self.setData({
				  page: data.page - 1
				});
			  }
			}).finally(function (response) {
			  uni.hideLoading();
			  self.setData({
				isLoading: false
			  });
			  uni.stopPullDownRefresh();
			});
		},
		//加载分页
		loadMore: function (e) {
		  var self = this;

		  if (!self.isLastPage) {
			self.setData({
			  page: self.page + 1
			}); 
			//console.log('当前页' + self.data.page);

			this.fetchPostsData(self);
		  } else {
			uni.showToast({
			  title: '没有更多内容',
			  mask: false,
			  duration: 1000
			});
		  }
		},
		// 跳转至查看文章详情
		/*redictDetail: function (e) {
		  // console.log('查看文章');
		  var id = e.currentTarget.id,
		  url = '../detail/detail?id=' + id;
		  uni.navigateTo({
			url: url
		  });
		},*/
		//首页图标跳转
		onNavRedirect: function (e) {
		  var redicttype = e.currentTarget.dataset.redicttype;
		  var url = e.currentTarget.dataset.url == null ? '' : e.currentTarget.dataset.url;
		  var appid = e.currentTarget.dataset.appid == null ? '' : e.currentTarget.dataset.appid;
		  var extraData = e.currentTarget.dataset.extraData == null ? '' : e.currentTarget.dataset.extraData;

		  if (redicttype == 'apppage') {
			//跳转到小程序内部页面         
			uni.navigateTo({
			  url: url
			});
		  } else if (redicttype == 'webpage') //跳转到web-view内嵌的页面
			{
			  url = '../webpage/webpage?url=' + url;
			  uni.navigateTo({
				url: url
			  });
			} else if (redicttype == 'miniapp') //跳转到其他app
			{
			  uni.navigateToMiniProgram({
				appId: appid,
				envVersion: 'release',
				path: url,
				extraData: extraData,

				success(res) {// 打开成功
				},

				fail: function (res) {
				  //console.log(res);
				}
			  });
			}
		},
		// 跳转至查看小程序列表页面或文章详情页
		redictAppDetail: function (e) {
		  // console.log('查看文章');
		  var id = e.currentTarget.id;
		  var redicttype = e.currentTarget.dataset.redicttype;
		  var url = e.currentTarget.dataset.url == null ? '' : e.currentTarget.dataset.url;
		  var appid = e.currentTarget.dataset.appid == null ? '' : e.currentTarget.dataset.appid;

		  if (redicttype == 'detailpage') //跳转到内容页
			{
			  url = '../detail/detail?id=' + id;
			  uni.navigateTo({
				url: url
			  });
			}

		  if (redicttype == 'apppage') {
			//跳转到小程序内部页面         
			uni.navigateTo({
			  url: url
			});
		  } else if (redicttype == 'webpage') //跳转到web-view内嵌的页面
			{
			  url = '../webpage/webpage?url=' + url;
			  uni.navigateTo({
				url: url
			  });
			} else if (redicttype == 'miniapp') //跳转到其他app
			{
			  uni.navigateToMiniProgram({
				appId: appid,
				envVersion: 'release',
				path: url,

				success(res) {// 打开成功
				},

				fail: function (res) {
				  //console.log(res);
				}
			  });
			}
		},
		//返回首页
		redictHome: function (e) {
		  //console.log('查看某类别下的文章');  
		  var id = e.currentTarget.dataset.id,
			  url = '/pages/index/index';
		  uni.switchTab({
			url: url
		  });
		},
		//点赞值
		dianzan(index,tieid,uid) {
			var that = this;
			var getZanRequest = wxRequest.getRequest(Api.getZan(tieid,that.uid,that.userInfo));
			var res;
			var uid = uid;
			
			getZanRequest.then(response => {
				res = response;
				if(res.data.code) {
					if(res.data.msg.status == 1) {
						if (this.postsList[index].zanzhi == 0) {
							this.postsList[index].zanzhi = 1;
							uni.showToast({
								title: res.data.msg.value+' '+res.data.msg.jifen,
								icon: 'success',
								duration: 2000
							});
						} else {
							this.postsList[index].zanzhi = 0;
							uni.showToast({
								title: res.data.msg.value+' '+res.data.msg.jifen,
								icon: 'success',
								duration: 2000
							});
						}
						console.log('点赞',uid+that.uid); 
						var zan_data = '{"type":"zan","tieid":"'+tieid+'","uid":"'+that.uid+'","tieuid":"'+uid+'","tiename":"2","tozanuid":"'+that.uid+'","tozanname":"'+that.member.name+'","avatar":"'+that.member.avatar+'"}';
						//var zan_data = '{"type":"zan","tieid":"'+tieid+'","tieuid":"'+uid+'","tiename":"2","tozanuid":"'+that.uid+'","tozanname":"22","title":"22","content":"22","uid":"'+that.uid+'"}';
						// 将JSON字符串解析为数组  
						//var zan_data = JSON.parse(zan_data);  
						if(uid != that.uid) {
							/*#ifdef H5*/
							that.duixinimin.send(zan_data);
							/*#endif*/
							/*#ifdef MP-WEIXIN || APP-PLUS*/
							uni.sendSocketMessage({
							      data: zan_data
							});
							/*#endif*/
						}
						//that.duixinim.send(zan_data);
						
					
					} else {
						this.postsList[index].zanzhi = 0;
						uni.showToast({
							title: res.data.msg.value+' '+res.data.msg.jifen,
							icon: 'success',
							duration: 2000
						});
					}
				} else {
					if(res.data.msg=="账号必须实名认证"){
						uni.showModal({
							title: res.data.msg,
							//content: '请先登录',
							confirmText: '前往认证',
							success: function(res) {
								if (res.confirm) {
									uni.navigateTo({
										url: '/pages/shezhi/renzheng'
									});
								}
							}
						});
					} else {

						uni.showModal({
						title: '请先登录',
						//content: '请先登录',
						confirmText: '前往登录',
						success: function(res) {
							if (res.confirm) {
								var danqianurls = uni.getLaunchOptionsSync();
								//var danqianurls = '/'+danqianurls.path+'?id='+danqianurls.query.id;
								var danqianurls = '/'+danqianurls.path;
								uni.setStorageSync('danqianurls', danqianurls);
								uni.redirectTo({
									url: '/pages/login/login'
								});
							}
						}
						});
					}
			
				}
			})
			//console.log("帖子index",index);
			//console.log("帖子tieid",tieid);
		},
		//置顶列表
		getZhiding() {
			var that = this;
			var getZhidingRequest = wxRequest.getRequest(Api.getZhiding());
			var res;
			getZhidingRequest.then(response => {
				res = response;
				if(res.data.code) {
					that.zhiding = res.data.data;
				} else {
					uni.showToast({
						icon: 'none',
						title: '获取失败，请稍后重试'
					});
				}
			})
		},
		//获取当前页面
		getDangqianurl() {
			//获取当前页面栈的实例
			let pages = getCurrentPages();
			//获取当前页面
			let currentPage = pages[pages.length-1].$page.fullPath;
			let url = currentPage;
			uni.setStorageSync('dangqianUrl', url);
		},
		//跳转到热门remen / 跳转下方链接的方法switchTab
		dremen() {
			uni.navigateTo({
				url: '/pages/hot/hots' // 目标页面的路径
			});
		},
		//跳转到新帖
		dxintie() {
			uni.navigateTo({
				url: '/pages/hot/xintie' // 目标页面的路径
			});
		},
		//跳转到新评
		dxinping() {
			uni.navigateTo({
				url: '/pages/hot/xinping' // 目标页面的路径
			});
		},
		//签到 getQiandao
		getqiandao(){
			if(qiandaokai == 1){
				var that = this;
				if(that.userInfo){
					that.getQiandaourl()
				} else {
					uni.showModal({
						title: '请先登录',
						//content: '请先登录',
						confirmText: '前往登录',
						success: function(res) {
							if (res.confirm) {
								uni.redirectTo({
									url: '/pages/login/login'
								});
							}
						}
					});
				}
			} else {
				uni.showToast({
				  title: "请安装签到插件",
				  mask: false,
				  duration: 1000
				});
			}
			
		},
		//自动签到
		getzidongQiandaourl(){
			var that = this;
			uni.request({
			  url: Api.getQiandao(that.uid,that.userInfo), 
			  method: 'GET',
			  dataType: "json",
			  header: {
			  	'Content-Type': 'application/json',
				'x-requested-with':"XMLHttpRequest"
			  },
			  data: {
			    /*s: 'member',
			    app: 'qiandao',
			    c: 'home',
			    m: 'dosign',
			    quan: 0*/
			  },
			  success: function (res) {
			    //console.log(res.data.msg);
				if(res.data.data.dao ==1) {
					that.yiqiandao = res.data.data.dao;
					uni.showToast({
					  title: res.data.msg,
					  mask: false,
					  duration: 1000
					});
				} else {
					that.yiqiandao = res.data.data;
				}
					
				
			  },
			  fail: function (error) {
			    //console.log(error);
			  }
			});

		},
		//点击签到
		getQiandaourl(){
			var that = this;
			uni.request({
			  url: Api.getQiandao(that.uid,that.userInfo), 
			  method: 'GET',
			  dataType: "json",
			  header: {
			  	'Content-Type': 'application/json',
				'x-requested-with':"XMLHttpRequest"
			  },
			  data: {
			    /*s: 'member',
			    app: 'qiandao',
			    c: 'home',
			    m: 'dosign',
			    quan: 0*/
			  },
			  success: function (res) {
			    //console.log(res.data.msg);
				if(res.data.data.dao ==1) {
					that.yiqiandao = res.data.data.dao;
					that.getQiandaouid();
					uni.showToast({
					  title: res.data.msg,
					  mask: false,
					  duration: 1000
					});
				} else {
					that.yiqiandao = res.data.data;
					that.getQiandaouid();
					//console.log("已经签到",that.yiqiandao);
					uni.showToast({
					  title: res.data.msg,
					  mask: false,
					  duration: 1000
					});
					
				}
					
				
			  },
			  fail: function (error) {
			    //console.log(error);
			  }
			});
			
		},
		//签到用户 getQiandaohuiyuan
		getQiandaouid(){
			var that = this;
			var getQiandaohuiyuanRequest = wxRequest.getRequest(Api.getQiandaohuiyuan());
			var res;
			getQiandaohuiyuanRequest.then(response => {
				res = response;
				if(res.data.code) {
					that.qiandaouidlist = res.data.data;
				} else {
					uni.showToast({
						icon: 'none',
						title: '获取失败，请稍后重试'
					});
				}
			})
		},
		//推荐圈子 getTuijianQuanzi
		getTuijianquanzis(){
			var that = this;
			var getTuijianQuanziRequest = wxRequest.getRequest(Api.getTuijianQuanzi());
			var res;
			getTuijianQuanziRequest.then(response => {
				res = response;
				if(res.data.code) {
					that.tuijianquanzilist = res.data.data;
				} else {
					uni.showToast({
						icon: 'none',
						title: '获取失败，请稍后重试'
					});
				}
			})
		},
		// 点击
		quanzi(tieid) {
			//console.log('点击',tieid); 
			var url = '../quanzi/quanzi?&id='+tieid;
			uni.navigateTo({
				url: url
			});
		},
		// 个人页面
		getgeren(uid) {
			//console.log('uid点击',uid);
			var url = '../u/index?&uid='+uid;
			uni.navigateTo({
				url: url
			});
		},
		//统计getTongji
		getTongjishuliang() {
			var duixin = this;
			var getTongjiRequest = wxRequest.getRequest(Api.getTongji());
			var res;
			getTongjiRequest.then(response => {
				res = response;
				if(res.data.code) {
					duixin.tongji = res.data.data;
				} else {
					uni.showToast({
						icon: 'none',
						title: '获取失败，请稍后重试'
					});
				}
			})
		},
		//推送消息
		getTuisongs() {
			var duixin = this;
			var getTuisongxinxiRequest = wxRequest.getRequest(Api.getTuisongxinxi());
			var res;
			getTuisongxinxiRequest.then(response => {
				res = response;
				if(res.data.code) {
					duixin.tongjis = res.data.data;
				} else {
					uni.showToast({
						icon: 'none',
						title: '获取失败，请稍后重试'
					});
				}
			})
		},
		//关注
		getGuanzhus(index,uid) {
			var duixin = this;
			var getGuanzhuRequest = wxRequest.getRequest(Api.getGuanzhu(duixin.uid,duixin.userInfo)+'&uid='+uid);
			var res;
			getGuanzhuRequest.then(response => {
				res = response;
				if(res.data.code) {
					if(res.data.data.status == 1) {
						this.postsList[index].guanzhuuid = 1;
						
						uni.showToast({
							title: res.data.msg,
							icon: 'success',
							duration: 2000
						});
						
					} else {
						this.postsList[index].guanzhuuid = 0;
						
						uni.showToast({
						  title: res.data.msg,
						  mask: false,
						  duration: 1000
						});
					}
					
				} else {
					uni.showToast({
						icon: 'none',
						title: res.data.msg+'关注提示'
					});
				}
			})
		},
		
		//热门Tags
		getTag() {
			var duixin = this;
			var getTagsRequest = wxRequest.getRequest(Api.getTags());
			var res;
			getTagsRequest.then(response => {
				res = response;
				if(res.data.code) {
					duixin.tags.flowList = res.data.data;
				} else {
					uni.showToast({
						icon: 'none',
						title: '获取失败，请稍后重试'
					});
				}
			})
		},
		//tagsurl
		tagsurl(e){
			//console.log('tag点击',e);
			var url = '../tags/index?tags='+e.tags;
			uni.navigateTo({
				url: url
			});
		},
		fenggeclose(){
			this.fenggeshow = false
		},
		fenggeopen(){
			this.fenggeshow = true
		},
		fenggevalues(e){
			var duixin = this;
			duixin.fenggezhi = e.index+1;
			duixin.fengge = e.index+1;
			//console.log('duixin.fenggevalue', duixin.fenggezhi);
			uni.setStorageSync('fenggezhi', e.index+1);
			var StorageSync = uni.getStorageSync('fenggezhi', e.index+1);
			//console.log('StorageSync缓存值：', StorageSync);
			
		},
		//展示不同的页面
		yemian(e){
			var duixin = this;
			duixin.tiezileixingxuanzhong = e.index;
			
			duixin.fetchPostsData(duixin);
			//console.log('点击更新列表：', 0.1);
		},
		//im收信息
		
		getIm(){
			uni.onSocketMessage(function (res) {
			  console.log('收到消息：', res.data);
			}); 
			
		},
		//重新链接
		getimin(uid,member){
			var duixin = this;
			
			if (!duixin.duixinimin || duixin.duixinimin.readyState == 3) { 
				/*#ifdef H5 */
				duixin.duixinimin = new WebSocket(wss);  
				//console.log('im连接成功11',duixin.duixinim);  
				duixin.duixinimin.onopen = (e) => {  
				  //console.log('im连接成功00',duixin.duixinim);  
				  duixin.message = '已连接';
				  var login_data = '{"type":"login","name":"'+member.name+'","uid":"'+uid+'"}';
				  //console.log("登录成功，发送登录数据:"+login_data);
				  duixin.duixinimin.send(login_data);
				  /*uni.sendSocketMessage({
				      data: login_data
				  });*/
				};  
				  
				duixin.duixinimin.onmessage = duixin.getOnmessage;  
				  
				duixin.duixinimin.onclose = function(event) {
				  console.log('im已关闭，尝试重新连接...', event);
				  duixin.message = '连接已断开';  
				  setTimeout(() => {  
					duixin.getimin(); // 延迟重新连接，避免频繁尝试连接
					console.log('im连接成功in'); 
				  }); // 5秒后重新连接  , 5000
				};  
				duixin.duixinimin.onerror = function(error) {  
				  console.error('im错误:', error);  
				}; 
				/*#endif*/
				/*#ifdef MP-WEIXIN  || APP-PLUS*/
				uni.connectSocket({
				  url: wss,
				  success(data) {
				     console.log("websocket连接成功",data);
				  },
				  fail(err) {
					console.error('WebSocket连接失败', err);
				  }
				});
				uni.onSocketOpen(function (res) {
				  console.log('WebSocket连接已打开！');
				  var login_data = '{"type":"login","name":"'+member.name+'","uid":"'+uid+'"}';
				    uni.sendSocketMessage({
				        data: login_data
				    });
				});
				uni.onSocketMessage(function (res) {
				  console.log('收到服务器内容：' + res.data);
				  duixin.getOnmessage(res);
				});
				uni.onSocketClose(function (res) {
				  console.log('WebSocket 已关闭！');
				  setTimeout(() => {
					duixin.getimin(); // 延迟重新连接，避免频繁尝试连接
					console.log('im连接成功in'); 
				  }); // 5秒后重新连接  , 5000
				});
				uni.onSocketError(function (res) {
				  console.log('WebSocket连接打开失败，请检查！');
				});
				/*#endif*/
			} else {  
			console.log('im连接已存在');  
			} 
		},
		getOnmessage(e){
			var duixin = this;
			//console.log('收信息',e.data);
			var shouxin = JSON.parse(e.data); 
			duixin.shouxin = shouxin
			if(shouxin.type == 'zan') {
				if(duixin.uid==shouxin.tieuid){
					duixin.tongzhileixing = 4;
					duixin.toptishishow = true;
					duixin.dianzanname = shouxin.tozanname;
					duixin.dianzantouxiang = shouxin.avatar;
					duixin.duanxintongzhi = 1;
					duixin.getTongjis(duixin.uid);
					setTimeout(() => {  
						duixin.toptishishow = false; // 五秒后隐藏
					}, 3000); // 延迟时间为 5000 毫秒（即 5 秒）
				}
				
			}
			if(shouxin.type == 'pinglun') {
				if(duixin.uid==shouxin.tieuid){
					duixin.tongzhileixing = 10;
					duixin.toptishishow = true;
					duixin.dianzanname = shouxin.tozanname;
					duixin.dianzantouxiang = shouxin.avatar;
					duixin.duanxintongzhi = 1;
					duixin.getTongjis(duixin.uid);
					setTimeout(() => {  
						duixin.toptishishow = false; // 五秒后隐藏
					}, 3000); // 延迟时间为 5000 毫秒（即 5 秒）
				}
				
			}
		},
		// 提示
		tishi(){
			var duixin = this;
			//console.log('duanxintongzhi2',duixin.duanxintongzhi);
			var th = duixin.duanxintongzhi;
			if (th > 0) {
				uni.showTabBarRedDot({ //显示红点 
					index: 3,//tabbar下标
					text: '6' //数字
				})
			}
			/*setTimeout(() => {
				var th = duixin.duanxintongzhi;
				if (th > 0) {
					uni.showTabBarRedDot({ //显示红点 
						index: 2 ,//tabbar下标
					})

				}	
			 }, 1000);*/
		},
		//获取消息统计
		getTongjis(uid) {
		  	var self = this;
			
				var getXiaoxitongjiRequest = wxRequest.getRequest(Api.getXiaoxitongji(self.uid));
				getXiaoxitongjiRequest.then(response => {
					if (response.data.code == 1) {
					  // 
					  var tongji = response.data.data;
					  self.tongjihome = response.data.data
					  self.tongzhi(tongji);
					} else {
					  self.setData({
						displaySwiper: "none"
					  });
					}
				});	
		},
		// 通知
		tongzhi(e){
			var duixin = this;
			var tongjishu = e;
			//console.log('通知',e.zongshu);
			duixin.ceshitongshi = e.zongshu.toString();
			//console.log('通知tongjishu',tongjishu.zongshu);
			if(tongjishu.zongshu >0){
				setTimeout(() => {
					uni.setTabBarBadge({ // 显示红点
						index: 3, // tabbar下标
						text: tongjishu.zongshu.toString() // 数字
					})
				 });
			} else {
				setTimeout(() => {
					uni.removeTabBarBadge({ // 隐藏红点
						index: 3, // tabbar下标
					})
				 });
			}
			
			 
			
		},
		//快捷点击，二维码扫描
		kuaijieurl(e){
			if(e.id==2){
				//扫描二维码
				uni.scanCode({
					success: res => {
					  console.log('扫描成功',res.result)
					  const url = res.result;
					  // 创建一个URLSearchParams实例  
					  // 正则  
					  let strREG = /id\=(.*)/ig  
					  // exec 匹配，返回数组。  
					  const param = strREG.exec(url);
					  // 数组下标 1 就是括号匹配的值  
					  const id = param[1]; 
					  
					  console.log(id);
					  let paramsStr = '';
						if (url.indexOf('?') !== -1) {
							paramsStr = url.substring(url.indexOf('?') + 1);
							console.log("发现URL参数",paramsStr);
						} else {
							console.log("未发现URL参数");
						return;
						}
						// URL参数转换为对象格式
						const paramArr = paramsStr.split('&');
						const paramsObj = {};
						for (let i = 0; i < paramArr.length; i++) {
						  const keyValuePair = paramArr[i].split('=');
						  const key = decodeURIComponent(keyValuePair[0]);
						  const value = decodeURIComponent(keyValuePair[1] || '');
						  
						  paramsObj[key] = value;
						}
						
						console.log("URL参数", paramsObj);
					    /*
						{
						    "s": "member",
						    "app": "quan",
						    "c": "hdbm",
						    "m": "renzheng",
						    "tid": "642",
						    "quan": "8",
						    "uid": "1",
						    "quanuid": "1",
						    "tieuid": "1",
						    "leixing": "huodongrenzhong"
						}
						*/
					    if(paramsObj['leixing'] == 1){
						  uni.navigateTo({
							url: `/pages/huodong/renzheng?tid=${paramsObj.tid}&quan=${paramsObj.quan}&uid=${paramsObj.uid}&quanuid=${paramsObj.quanuid}&tieuid=${paramsObj.tieuid}`
						  });
						} else if (paramsObj['leixing'] == 2){
						 console.log('quan',paramsObj.quan);
						 console.log('id',paramsObj.id);
						  uni.navigateTo({
							url: `/pages/tiezi/tiezi?qid=${paramsObj.quan}&id=${paramsObj.id}`
						  });
						} else {
						  uni.navigateTo({
							url: `/pages/url/url?link=${res.result}`
						  });
						}
					  /*if(app=="quan"){
						  console.log('quan',quan);
					  }*/
					  // 在这里处理扫描结果
					  /*uni.navigateTo({
					  	url: `/pages/url/url?link=${res.result}`
					  });*/
					},
					fail: err => {
					  console.log('扫描错误',err)
					  // 在这里处理扫描失败的情况
					}
				})
				/*var url = '/pages/saomiao/saomiao';
				uni.navigateTo({
					url: url
				});*/
			}
			//console.log('zhi',e.id)
			
		},
		openpinglun(quanid,tieid){
			var duixin = this;
			duixin.pinglunkaiguan = true;
			duixin.gundongkai = 1;
			duixin.getPinglunNeirong(tieid,duixin.uid,duixin.keycode);
		},
		pinglunguan(){
			var duixin = this;
			duixin.pinglunkaiguan = false;
			duixin.gundongkai = 0;
		},
		//获取帖子评论内容
		getPinglunNeirong(tieid,uid,code) {
			
			var self = this;
			self.tieiddata = tieid;
			console.log("帖子id",self.tieiddata);
			var getPinglunNeirongRequest = wxRequest.getRequest(Api.getPinglunNeirong(tieid,uid,code));
			var res;
			getPinglunNeirongRequest.then(response => {
				res = response;
				//console.log("帖子",res.data.data.son_tie);
				if(res.data.code) {
					let tieziindexs = {
						"id": res.data.data.id,
						"touxiang": res.data.data.touxiang,
						"mingcheng": res.data.data.mingcheng,
						"yonghuzu": res.data.data.yonghuzu,
						"guishudi": res.data.data.guishudi,
						"comments": res.data.data.comments,
						"uid": res.data.data.uid
					}
					self.tieziindex = tieziindexs;
					self.jiazai = false;
					self.tiezijiazai = true;
					
					self.tiezidata = res.data.data.list;
					self.pingluntongji = res.data.data.comments;
					//console.log("帖子tiezi",res.data.data)
		
				} else {
				  if(res.data.msg=="账号必须实名认证"){
				  	uni.showModal({
				  		title: res.data.msg,
				  		//content: '请先登录',
				  		confirmText: '前往认证',
				  		success: function(res) {
				  			if (res.confirm) {
				  				uni.navigateTo({
				  					url: '/pages/shezhi/renzheng'
				  				});
				  			}
				  		}
				  	});
				  } else {
				  	uni.showToast({
				  		icon: 'none',
				  		title: '获取失败，请稍后重试'
				  	});
				  }
				}
			})
		},
		//实名
		shiminghuifu(){
			
			var duixin = this;
			var getShiminghuifuRequest = wxRequest.getRequest(Api.getShiminghuifu(duixin.memberuid,duixin.userInfo));
			var res;
			getShiminghuifuRequest.then(response => {
				res = response;
				if(res.data.code) {
		            
				} else {
					if(res.data.msg=="账号必须实名认证"){
						duixin.shipinhuifudata = false;
					} else {
						
					}
				}
			})
		},
		// 登录校验
		checkLogin() {
			// TODO 此处填写登录校验逻辑
			var userInfo = uni.getStorageSync('userInfo');
			if (userInfo) {
				return true;
			} else {
				uni.showModal({
					title: '提示',
					content: '请先登录',
					confirmText: '前往登录',
					success: function(res) {
						if (res.confirm) {
							uni.navigateTo({
								url: '/pages/login/login'
							});
						}
					}
				});
				return false;
			}
		},
		// 输入框聚焦
		focusOn() {
			this.checkLogin();
		},
		// 评论内容
		pingluncontent(e){
			var duixin = this;
			duixin.pingluncontents = e;
			console.log('pinglun',e)
		},
		// 新增评论
		add(req,uid,code) {
			
			if (!this.checkLogin()) {
				return
			}
			var that = this;
			//that.fetchDetailData(options.id);
			var skin = uni.getStorageSync('skin');
			//var tieids = that.tieids;
			//console.log("帖子ids",tieids);
			//判断用户是否登录
			var userInfo = uni.getStorageSync('userInfo');
			//console.log("options",options);
			if (userInfo) {
				var member = uni.getStorageSync('member');
				var memberuid = uni.getStorageSync('memberuid');
				
			}
			if (that.reqFlag) {
				uni.showToast({
					title: '操作频繁',
					duration: 500
				});
				return
			}
			
			that.reqFlag = true;
			let params = {
				"articleId": that.articleId,
				"pId": req.pId,
				"content": req.content
			}
			
			var datas = "is_ajax=1&content="+that.pingluncontents;
			//console.log("req.rid",req);
			var postPinglunRequest = wxRequest.postRequest(Api.postPinglun(req.pId,memberuid,userInfo,req.rid),datas);
			postPinglunRequest.then(response => {
				//res = response;
				if (response.data.code == 1) {
				  //console.log('二级评论',req.erjiuid); 
				  uni.showToast({
				  	title: "评论成功",
				  	duration: 1000
				  });
				  that.reqFlag = false;
				  that.$refs.hbComment.addComplete();
				  that.getPinglunNeirong(req.tieid,memberuid,userInfo);
				  uni.showToast({
				  	title: "更新加载",
				  	duration: 2000
				  });
				  if(req.rid >0){
					  var pinglun_data = '{"type":"pinglun","tieid":"'+req.tieid+'","uid":"'+that.uid+'","tieuid":"'+that.tieziindex.uid+'","tiename":"2","tozanuid":"'+req.erjiuid+'","tozanname":"'+that.member.name+'","avatar":"'+that.member.avatar+'"}';
					  if(req.erjiuid != that.uid) {
					  	
						/*#ifdef H5*/
						that.duixinim.send(pinglun_data);
						/*#endif*/
						/*#ifdef MP-WEIXIN || APP-PLUS*/
						uni.sendSocketMessage({
						      data: pinglun_data
						});
						/*#endif*/
					  }
				  } else {
					  var pinglun_data = '{"type":"pinglun","tieid":"'+req.tieid+'","uid":"'+that.uid+'","tieuid":"'+that.tieziindex.uid+'","tiename":"2","tozanuid":"'+that.uid+'","tozanname":"'+that.member.name+'","avatar":"'+that.member.avatar+'"}';
					  if(that.tieziindex.uid != that.uid) {
					  	
						/*#ifdef H5*/
						that.duixinim.send(pinglun_data);
						/*#endif*/
						/*#ifdef MP-WEIXIN || APP-PLUS*/
						uni.sendSocketMessage({
						      data: pinglun_data
						});
						/*#endif*/
					  }
				  }
				  
				} else {
					if(response.data.msg=="账号必须实名认证"){
						uni.showModal({
							title: response.data.msg,
							//content: '请先登录',
							confirmText: '前往认证',
							success: function(res) {
								if (res.confirm) {
									uni.navigateTo({
										url: '/pages/shezhi/renzheng'
									});
								}
							}
						});
					} else {
						  uni.showToast({
							title: response.data.msg,
							duration: 1000
						  });
					}
				}
			});

		},
		getShoucang(){
			
		},
		getZan(){
			
		},
		like(){
			
		},
		del(){
			
		},
		searchTapjiansuo() {
			var duixin = this;
			const searchValue = duixin.searchValue; // 获取输入框的值
			
			if (searchValue) {
				uni.navigateTo({
					url: '/pages/jiansuo/index?k=' + searchValue // 跳转到目标页面并传递搜索关键字参数
				});
			}
			
		},
		searchTap(){
			var duixin = this;
			const searchValue = duixin.searchValue; // 获取输入框的值
			
			if (searchValue) {
				uni.navigateTo({
					url: '/pages/sou/sou?k=' + searchValue // 跳转到目标页面并传递搜索关键字参数
				});
			}
		},
		rightClick(){
			console.log('右点击');
		},
		btnClick(){
			var duixin = this;
			duixin.shezhitubiao = !duixin.shezhitubiao;
			//console.log('dddd',duixin.shezhitubiao);
		},
		//图标点击
		btnClicks(){
			var duixin = this;
			duixin.shezhitubiao = !duixin.shezhitubiao;
		},
		shezhitubiaoclick(){
			var duixin = this;
			duixin.shezhitubiao = !duixin.shezhitubiao;
			//console.log('dddd',duixin.shezhitubiao);
		},
		gnkaiguan(id,kuaiguan){
			var duixin = this;
			console.log('gn',id);
			if(id==1){
				duixin.bianliankaiguan = true;
			} else if(id==2) {
				duixin.fenggeshow = true;
			} else if (id==3){
				
				//duixin.anheimoshi = !duixin.anheimoshi;
				if(kuaiguan == 'light'){
					duixin.anheimoshi = false;
					var theme = 'dark';
					duixin.fenggeyanse = theme;
					duixin.setTheme(theme,duixin.anheimoshi);
					duixin.wenzifenggedata();
				} else {
					duixin.anheimoshi = true;
					var theme = 'light';
					duixin.fenggeyanse = theme;
					duixin.setTheme(theme,duixin.anheimoshi);
					duixin.wenzifenggedata();
				}
				
			}
			
		},
		bianlianclose(){
			var duixin = this;
			duixin.bianliankaiguan = false
		},
		bianlianopen(){
			
		},
		bianlianshu(id){
			var duixin = this;
			uni.setStorageSync('bianlianshuid', id);
			duixin.bianliankaiguan = false
			uni.reLaunch({
			    url: '/pages/index/index'
			})
		},
		getbianlian(data){
			var duixin = this;
			var bianlianid = data['toubu'];
			var id = uni.getStorageSync('bianlianshuid');
			if(id ==3){
				duixin.bianlianshuid = 3;
			} else if(id ==1) {
				duixin.bianlianshuid = 1;
			} else if(id ==2) {
				duixin.bianlianshuid = 2;
			} else if(bianlianid==3){
				duixin.bianlianshuid = 3;
			} else if(bianlianid==1){
				duixin.bianlianshuid = 1;
			} else if(bianlianid==2){
				duixin.bianlianshuid = 2;
			} else {
				duixin.bianlianshuid = bianlianid;
			}
			//console.log('bian', bianlianid)
		},
		setTheme(theme,i) {
		    this.$store.commit("setTheme", theme);
			uni.setStorage({
			  key: 'theme',
			  data: theme,
			});
			uni.setStorage({
			  key: 'anheimoshi',
			  data: i,
			});
		},
		wenzifenggedata(){
			var duixin = this;
			duixin.wenzifengge = duixin.fengge ? '#000000' : '#868686';
		},
		audioChange(e){
			console.log('播放状态：'+e.state)
		},
		toUrl(src){
			return new URL(src).href
		},
		//设置关闭
		mpsanclose(){
			this.mpsanshow = false
		},
		mpsanopen(){
			
		},
		mpsanbofang(title,url){
			var duixin = this;
			console.log('title',title);
			this.mpsanshow = true;
			duixin.mpsanurl = url;
			duixin.mpsantitle = title;
		},

		audioPlay(event){
			let _this = this;
			//console.log('refs',event);
			// 获取$refs对象的所有属性（即引用名称）  
			const refNames = Object.keys(this.$refs);
			// 过滤出引用名为"bbb"和"ccc"的组件  refName !== 'ccc125' !/`event`|privacy|hbComment/.test(refName)
			const filteredRefs = refNames.filter(refName => refName !== 'privacy' && refName !== 'hbComment' && refName !== 'audio' && refName !== event);  
			//console.log('refNames',filteredRefs);
			// 循环遍历引用名称  
			filteredRefs.forEach((refName) => {  
			  // 获取对应的引用对象（即子组件实例）
			  this.$refs[refName][0].zanting(0);
			  //const refObject = this.$refs[refName][0]; 
			  // 在这里可以对refObject进行操作，例如调用方法或访问数据属性等  
			  //console.log(refName, refObject);  
			}); 

		},
		audioPause(e){
			console.log('audioPause',e);
		},
		// 圈子属性
		getQuanzishuxingData(){
			var duixin = this;
			//console.log('xx'); 
			var getQuanzishuxingRequest = wxRequest.getRequest(Api.getQuanzishuxing());
			getQuanzishuxingRequest.then(response => {
				if (response.data.code == 1) {
				  //console.log(response.data.data); 
				  duixin.quanzishuxing = response.data.data
				} else {
				  duixin.setData({
					displaySwiper: "none"
				  });
				}
			});
		},
		clickTab(idx) {
			var duixin =this;
		    duixin.tabBarIdx = idx;
		    console.log('clickTab',idx);
			//console.log('isTabBar',this.tabBarList[idx].pagePath);
			if(this.fenggeyanse=='light'){
				if(this.tabBarList[idx].pagePath){
				    if(this.tabBarList[idx].isTabBar){
						var url = this.tabBarList[idx].pagePath;
						//var url = '/pages/quan/quan';
				        uni.switchTab({
							url: url
				        });
				    }else{
						var url = this.tabBarList[idx].pagePath;
				        uni.navigateTo({
				            url: url
				        });
				    }
				    
				}
			} else {
				if(this.tabBarListhei[idx].pagePath){
				    if(this.tabBarListhei[idx].isTabBar){
						var url = this.tabBarListhei[idx].pagePath;
						//var url = '/pages/quan/quan';
				        uni.switchTab({
							url: url
				        });
				    }else{
						var url = this.tabBarListhei[idx].pagePath;
				        uni.navigateTo({
				            url: url
				        });
				    }
				    
				}
			}
			
		},
		//tagsurl
		tagsurl(e){
			console.log('tag点击',e);
			var url = '../tags/index?tags='+e.tags;
			uni.navigateTo({
				url: url
			});
		},
		// 微信分享密钥
		getWeixinFenxiangMiyueData(){
			var duixin = this;
			var danqianurls = uni.getLaunchOptionsSync();
			//var danqianurls = '/'+danqianurls.path+'?id='+danqianurls.query.id;
			var danqianurls = '/'+danqianurls.path;
			
			const url = decodeURIComponent(window.location.href);
			var urljia = danqianurls;
			//console.log('urljia',urljia); 
			//console.log('url',url); 
			var getWeixinfengxiangmiyueRequest = wxRequest.getRequest(Api.getWeixinfengxiangmiyue(url));
			getWeixinfengxiangmiyueRequest.then(response => {
				if (response.data.code == 1) {
					console.log('datacode',response.data.data); 
				  var weixin = response.data.data;
				  //console.log('weixinweixin',weixin); 
				  duixin.weixinfenxiangmiyue = response.data.data
					duixin.$wx.config({
					  debug: false,//true false
					  appId: weixin.appId,
					  timestamp: weixin.timestamp,
					  nonceStr: weixin.nonceStr,
					  signature: weixin.signature,
					  jsApiList: [
					    // 所有要调用的 API 都要加到这个列表中
					    
					    // 这里需要自己按微信文档来写参数
					    "updateAppMessageShareData", 
						"updateTimelineShareData",
						'checkJsApi', //判断当前客户端版本是否支持指定JS接口  
						'onMenuShareAppMessage', //分享接口  
						'getLocation', //获取位置  
						'openLocation', //打开位置  
						'scanQRCode', //扫一扫接口  
						'chooseWXPay', //微信支付  
						'chooseImage', //拍照或从手机相册中选图接口  
						'previewImage', //预览图片接口  
						'uploadImage' //上传图片  
					  ]
					});
					duixin.$wx.ready(function () {
					     // 自定义“分享给朋友”及“分享到QQ”按钮的分享内容
					     duixin.$wx.updateAppMessageShareData({ 
					      title: duixin.www && duixin.www.meta_title, // 分享标题
					      desc: duixin.www && duixin.www.meta_description, // 分享描述
					      link: url, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
							imgUrl: duixin.www && duixin.www.logoico, // 分享图标
					      success: function () {
					        // 设置成功
					      },
						    complete:function(argv){
						        
						    }
					    });
					    //自定义“分享到朋友圈”及“分享到QQ空间”按钮的分享内容
					    duixin.$wx.updateTimelineShareData({
					      title: duixin.www && duixin.www.meta_title, // 分享标题
						  desc: duixin.www && duixin.www.meta_description, // 分享描述
					      link: url, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
					      imgUrl: duixin.www && duixin.www.logoico, // 分享图标
					      success: function () {
					        // 设置成功
							//console.log('weixinmiyue2222',duixin.www.meta_title); 
					      }
					    });
					});
					duixin.$wx.error(function(res){
					  console.log('weixinres',res); 
					});
					
				} else {
				  duixin.setData({
					displaySwiper: "none"
				  });
				}
			});
		},

    },
	computed: {
		beijingtu() {  
			 var duixin = this;
			 return {  
				 backgroundImage: `url(${duixin.www['beijingbu']})`,  
				 backgroundRepeat: 'no-repeat',  
				 backgroundPosition: 'center center',  
				 backgroundSize: 'cover',  
			 };  
		},
		themeColor() {
			var duixin = this;
			//console.log('uuuu',duixin.$u.currentTheme);
			//duixin.theme === duixin.$u.light() ? '#333' : '#fff'
		  return 1; //  用于图标色
		},
		

	},
	created() {
		
	},

};
</script>
<style lang="scss">
@import "./index.css";
	/*#ifdef H5*/
	.uni-page-head { display: none; }
	/*#endif*/
page {
	background-color: #ffffff;
}
.d-huanhang-f {
	display: flex;
	word-wrap: break-word;
}
.d-layout {
	height: 50px;
	border-radius: 4px;
}

.d-purple {
	background: var(--d-beijing-hui);
}
.d-purple-light {
	background: #e5e9f2;
}
.album {
	@include flex;
	align-items: flex-start;

	&__avatar {
		 background-color: $u-bg-color;
		 padding: 1px;
		 border-radius: 50rpx;
	 }

	&__content {
		 margin-left: 10px;
		 flex: 1;
	 }
}
.d-fenggegao {
	height: 550rpx;
}
.btn {
  background-color: $nav-color !important;
  color: $nav-bg !important;
}
.d-cengci-100 {
	z-index: 100;
}
.d-cengci{
	position: relative;  
}
</style>